.selecttool-btn-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
    gap: 20px;
    padding: 5px;
    min-width: 320px;
    max-width: 90vw;
    width: 100%;
    max-width: 480px;

}

.tool-modal-header {
    text-align: center;
    margin-bottom: 8px;
}

.tool-modal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.8;
}

.selecttool-btn-cont {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

.tool-modal-checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: rgba(var(--bg-secondary), 0.3);
    border: 1px solid rgba(var(--border-color), 0.1);
}

.tool-modal-checkbox:hover {
    background: rgba(94, 129, 173, 0.15);
}

.tool-modal-checkbox.selected {
    background: rgba(94, 129, 173, 0.2);
    border-color: rgba(94, 129, 173, 0.4);
    box-shadow: 0 0 0 1px rgba(94, 129, 173, 0.3);
}

.tool-modal-checkbox.selected:hover {
    background: rgba(94, 129, 173, 0.25);
    border-color: rgba(94, 129, 173, 0.5);
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1;
    min-width: 0;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(94, 129, 173, 0.1);
    color: rgba(94, 129, 173, 0.8);
    flex-shrink: 0;
}

.tool-modal-checkbox.selected .tool-icon {
    background: rgba(94, 129, 173, 0.2);
    color: rgba(94, 129, 173, 1);
}

.tool-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.tool-description {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
    line-height: 1.3;
    padding-left: 42px;
}

.tool-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    width: 42px;
    height: 20px;
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(var(--border-color), 0.1);
}

.selected-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.8;
}

/* Responsive Design */
@media screen and (max-width: 640px) {
    .selecttool-btn-modal {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
        gap: 16px;
        margin: 0;
        border-radius: 12px;
    }

    .tool-modal-title {
        font-size: 18px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .tool-modal-checkbox {
        padding: 5px;
    }

    .tool-name {
        font-size: 15px;
    }

    .tool-description {
        font-size: 12px;
        padding-left: 38px;
    }

    .tool-icon {
        width: 28px;
        height: 28px;
    }
}

@media screen and (max-width: 480px) {
    .selecttool-btn-modal {
        padding: 16px;
        gap: 14px;
    }

    .tool-modal-checkbox {
        padding: 5px;
    }

    .tool-content {
        gap: 5px;
    }

    .tool-header {
        gap: 8px;
    }

    .tool-icon {
        width: 26px;
        height: 26px;
    }

    .tool-name {
        font-size: 14px;
    }

    .tool-description {
        font-size: 11px;
        padding-left: 34px;
    }
}

@media screen and (max-width: 360px) {
    .selecttool-btn-modal {
        padding: 14px;
        gap: 12px;
    }

    .tool-modal-title {
        font-size: 16px;
    }

    .tool-modal-checkbox {
        padding: 5px;
    }

    .tool-icon {
        width: 24px;
        height: 24px;
    }

    .tool-description {
        padding-left: 32px;
    }
}


/* High contrast mode */
@media (prefers-contrast: high) {
    .tool-modal-checkbox {
        border-width: 2px;
    }

    .tool-modal-checkbox:hover,
    .tool-modal-checkbox.selected {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tool-modal-checkbox {
        transition: none;
    }

    .tool-modal-checkbox:hover {
        transform: none;
    }
}
.workspace-create-body {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    -webkit-backdrop-filter: blur(15px) saturate(1.8);
            backdrop-filter: blur(15px) saturate(1.8);
    background: rgba(var(--bg-color1), 0.02);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-backdrop-filter: blur(0px);
                backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        -webkit-backdrop-filter: blur(15px) saturate(1.8);
                backdrop-filter: blur(15px) saturate(1.8);
    }
}

.wcreate-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.3);
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: inherit;
}

.wcreate-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(128, 128, 128, 0.5);
    transform: scale(1.05);
}

.wcreate-close-btn:active {
    transform: scale(0.95);
}

.wcreate-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: rgba(var(--bg-color1), 0.8);
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(var(--bg-color1), 0.3);
    min-width: 100px;
}

.wcreate-btn:hover {
    background: rgba(var(--bg-color1), 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bg-color1), 0.4);
}

.wcreate-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(var(--bg-color1), 0.3);
}

.wcreate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wcreate-cont {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 420px;
    max-width: 90vw;
    height: auto;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    gap: 24px;
    padding: 32px 28px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dark theme styles */
html.dark .wcreate-cont {
    background: rgba(21, 24, 29, 0.95);
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark .wcreate-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(128, 128, 128, 0.2);
}

html.dark .wcreate-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(128, 128, 128, 0.4);
}

.wcreate-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
}

.wcreate-label {
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    opacity: 0.8;
}

.wcreate-input {
    width: 100%;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    color: inherit;
}

.wcreate-input:focus {
    border-color: rgba(var(--bg-color1), 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(var(--bg-color1), 0.1);
    transform: translateY(-1px);
}

.wcreate-input::placeholder {
    color: rgba(128, 128, 128, 0.6);
}

/* Dark theme input styles */
html.dark .wcreate-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(128, 128, 128, 0.3);
    color: whitesmoke;
}

html.dark .wcreate-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--bg-color1), 0.8);
    box-shadow: 0 0 0 3px rgba(var(--bg-color1), 0.2);
}

html.dark .wcreate-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Additional utility classes for enhanced UX */
.wcreate-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
    text-align: center;
}

.wcreate-subtitle {
    font-size: 14px;
    opacity: 0.7;
    text-align: center;
    margin-bottom: 16px;
}

.wcreate-button-group {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.wcreate-btn.secondary {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(128, 128, 128, 0.3);
    box-shadow: none;
}

.wcreate-btn.secondary:hover {
    background: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.5);
    box-shadow: 0 2px 8px rgba(128, 128, 128, 0.2);
}
.rename-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid gray;
    padding: 5px 10px;
}

.rename-name {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rename-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;

}

.rename-label {
    color: gray;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.rename-input {
    width: 96%;
    font-size: 14px;
    padding: 5px;
    background: transparent;
    border: 1px solid gray;
    border-radius: 5px;
    outline: none;
}
/* Enhanced Image Modal Styles - Fully Responsive */

.expanded-img {
    max-width: min(90vw, 1200px);
    max-height: min(60vh, 800px);
    width: auto;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.expanded-img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.image-info {
    padding: 24px;
    border-radius: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    max-width: min(90vw, 500px);
    width: 100%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 16px;
    background: rgba(var(--bg-color1), 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--bg-color1), 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.image-info label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.8;
    color: rgba(var(--text-color), 0.7);
}

.image-info p {
    margin: 0 0 12px 0;
    word-break: break-word;
    text-align: left;
    background: rgba(var(--bg-color1), 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid rgba(var(--accent-color), 0.5);
    transition: all 0.2s ease;
}

.image-info p:hover {
    background: rgba(var(--bg-color1), 0.1);
    border-left-color: rgba(var(--accent-color), 0.8);
}

.toggle-buttons {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 10px;
    gap: 6px;
    font-size: 16px;
    border-radius: 16px;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 240px;
    margin: 0 auto 24px auto;

    background: linear-gradient(145deg, rgba(var(--bg-color1), 0.15), rgba(var(--bg-color1), 0.05));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(var(--bg-color1), 0.2);

    transform: perspective(800px) translateZ(0);
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-buttons:hover {
    transform: perspective(800px) translateZ(0) translateY(-2px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.toggle-buttons button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    height: 36px;
    gap: 8px;
    min-width: 100px;
    border-radius: 12px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: rgba(var(--text-color), 0.7);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.toggle-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(var(--accent-color), 0.1), rgba(var(--accent-color), 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.toggle-buttons button:hover::before {
    opacity: 1;
}

.toggle-buttons button.active {
    background: linear-gradient(145deg, rgba(var(--accent-color), 0.2), rgba(var(--accent-color), 0.1));
    color: rgba(var(--text-color), 0.9);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(var(--accent-color), 0.3);
    transform: translateY(1px);
}

.toggle-buttons button:hover:not(.active) {
    background: rgba(var(--bg-color1), 0.1);
    color: rgba(var(--text-color), 0.9);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.loading-img {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 40px;
}

.loading-img img {
    animation: pulse 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Dark Mode Enhancements */
html.dark {
    .toggle-buttons {
        border-color: rgba(var(--bg-color1), 0.3);
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 2px rgba(255, 255, 255, 0.05),
            inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    }

    .image-info {
        background: rgba(var(--bg-color1), 0.12);
        border-color: rgba(var(--bg-color1), 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .expanded-img {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
}

/* Light Mode Enhancements */
html.light {
    .toggle-buttons {
        border-color: rgba(var(--bg-color1), 0.2);
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.1),
            0 4px 12px rgba(0, 0, 0, 0.06),
            inset 0 2px 4px rgba(255, 255, 255, 0.8);
    }

    .image-info {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(var(--bg-color1), 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .expanded-img {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .expanded-img {
        max-width: 95vw;
        max-height: 70vh;
        border-radius: 16px;
    }

    .image-info {
        max-width: 95vw;
        padding: 20px;
        margin: 16px auto;
        gap: 14px;
        border-radius: 12px;
    }

    .image-info p {
        padding: 10px 14px;
        font-size: 13px;
    }

    .toggle-buttons {
        height: 44px;
        min-width: 200px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .toggle-buttons button {
        padding: 6px 14px;
        height: 32px;
        gap: 6px;
        min-width: 80px;
        font-size: 13px;
        border-radius: 10px;
    }

    .loading-img {
        min-height: 150px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .expanded-img {
        max-width: 98vw;
        max-height: 65vh;
        border-radius: 12px;
    }

    .image-info {
        max-width: 98vw;
        padding: 16px;
        gap: 12px;
    }

    .image-info label {
        font-size: 12px;
    }

    .image-info p {
        padding: 8px 12px;
        font-size: 12px;
    }

    .toggle-buttons {
        height: 40px;
        min-width: 180px;
        gap: 4px;
        padding: 4px;
    }

    .toggle-buttons button {
        padding: 4px 12px;
        height: 32px;
        gap: 4px;
        min-width: 70px;
        font-size: 12px;
    }

    .loading-img {
        min-height: 120px;
        padding: 20px;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .expanded-img {
        max-width: 85vw;
        max-height: 75vh;
    }

    .image-info {
        max-width: 85vw;
        padding: 22px;
    }

    .toggle-buttons {
        min-width: 220px;
    }
}

/* Large Screen Enhancements */
@media (min-width: 1440px) {
    .expanded-img {
        border-radius: 24px;
    }

    .image-info {
        padding: 28px;
        border-radius: 20px;
        max-width: 600px;
    }

    .toggle-buttons {
        height: 52px;
        min-width: 260px;
        border-radius: 18px;
    }

    .toggle-buttons button {
        height: 40px;
        padding: 10px 20px;
        border-radius: 14px;
        font-size: 15px;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .expanded-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Animation for modal entrance */
@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content {
    animation: modalEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.expanded-vid {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 20px;
}

.video-info {

    /* Light background */
    padding: 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    /* Dark gray text */
    max-width: 400px;
    min-width: 250px;
    margin: 16px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-info label {
    font-weight: 600;
    /* Slightly muted label text */
    margin-bottom: 2px;
}

.video-info p {
    margin: 0 0 8px 0;
    /* Darker paragraph text */
    word-break: break-word;
    text-align: left;
}

.toggle-buttons {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 30px;
    padding: 5px 5px;
    gap: 5px;
    font-size: 16px;
    border-radius: 10px;
    width: -moz-fit-content;
    width: fit-content;

    background: linear-gradient(145deg, rgba(var(--bg-color1), 0.15), rgba(var(--bg-color1), 0.05));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    transform: perspective(800px) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.toggle-buttons:hover {
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.07);
}

.toggle-buttons button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    height: 25px;
    gap: 5px;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 5px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    font-size: 14px;

    transition:
        background 0.3s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;

    transform-style: preserve-3d;
}

.toggle-buttons button.active {
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(1.5px);
    background: rgba(var(--bg-color1), 0.2);
}

.toggle-buttons button:hover {
    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

html.dark {


    .toggle-buttons {
        border-color: rgba(var(--bg-color1), 0.3);
        box-shadow:
            0 6px 14px rgba(0, 0, 0, 0.3),
            inset 0 1px 2px rgba(255, 255, 255, 0.05),
            inset 0 -2px 6px rgba(0, 0, 0, 0.15);
    }



}

/* ☀️ Light Mode */
html.light {



    .toggle-buttons {
        border-color: rgba(var(--bg-color1), 0.2);
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.1),
            0 4px 12px rgba(0, 0, 0, 0.06),
            inset 0 2px 4px rgba(255, 255, 255, 0.6);
    }
}
/* Modal-setting Overlay */
.modal-setting-body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    padding: clamp(4px, 2vw, 20px);
    box-sizing: border-box;
}

.modal-setting-body.modal-setting-visible {
    opacity: 1;
    visibility: visible;
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
}

/* Modal-setting Wrapper */
.modal-setting-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: min(90vw, 900px);
    max-height: min(96vh, 800px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.modal-setting-visible .modal-setting-wrapper {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-setting-close-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(128, 128, 128, 0.3);
    cursor: pointer;
    border-radius: 50%;
    margin-bottom: clamp(8px, 2vw, 16px);
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    color: inherit;
    flex-shrink: 0;
}

.modal-setting-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(128, 128, 128, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-setting-close-btn:active {
    transform: scale(0.95);
}

.modal-setting-close-btn svg {
    width: clamp(12px, 3vw, 16px);
    height: clamp(12px, 3vw, 16px);
}

/* Modal-setting Container */
.modal-setting-cont {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: center;
    width: 100%;
    min-width: min(300px, 90vw);
    max-width: 100%;
    min-height: clamp(300px, 60vh, 600px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: clamp(12px, 3vw, 24px);
    gap: clamp(12px, 3vw, 24px);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

/* Sidebar */
.settings-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    padding: 5px;
    height: 100%;
    min-width: clamp(150px, 25vw, 200px);
    flex-shrink: 0;
}

.sidebar-item {
    position: relative;
    display: flex;
    width: 100%;
    text-align: left;
    padding: clamp(8px, 2vw, 12px) clamp(10px, 3vw, 15px);
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    border-radius: clamp(6px, 2vw, 10px);
    gap: clamp(6px, 2vw, 10px);
    transition: all 0.2s ease;
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 500;
    border: 1px solid transparent;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item:hover {
    border-radius: clamp(6px, 2vw, 8px);
}

.sidebar-item.active {
    border-radius: clamp(6px, 2vw, 8px);
    font-weight: 600;
}

/* Main Content */
.settings-main {
    position: relative;
    flex: 1 1;
    min-width: 0;
    width: 100%;
    padding: 8px;
}

/* Custom scrollbar for webkit browsers */
.modal-setting-cont::-webkit-scrollbar {
    width: clamp(4px, 1vw, 6px);
}

.modal-setting-cont::-webkit-scrollbar-track {
    background: transparent;
}

.modal-setting-cont::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 3px;
}

.modal-setting-cont::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}

/* Settings Content Styles */
.settings-content {
    width: 100%;
    height: 100%;
    min-height: 500px;
    padding: clamp(12px, 4vw, 20px);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 4vw, 24px);
}

.settings-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
    margin: 0 0 clamp(12px, 3vw, 20px) 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.settings-subtitle {
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 500;
    margin: 0 0 clamp(12px, 3vw, 16px) 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 16px);
    padding: clamp(12px, 4vw, 20px);
    border-radius: clamp(8px, 2vw, 12px);
    border: 1px solid rgba(128, 128, 128, 0.2);
    width: 100%;
    box-sizing: border-box;
}

/* Setting Items */
.setting-item {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.5vw, 8px);
    width: 100%;
}

.setting-label {
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    text-align: left;
    word-wrap: break-word;
}

.setting-description {
    font-size: clamp(10px, 2vw, 12px);
    opacity: 0.7;
    margin: 4px 0 0 0;
    line-height: 1.4;
    text-align: left;
    word-wrap: break-word;
}

/* Form Elements */
.setting-input,
.setting-textarea,
.setting-select {
    width: 100%;
    padding: clamp(8px, 2vw, 12px);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: clamp(6px, 1.5vw, 8px);
    font-size: clamp(12px, 2.5vw, 14px);
    background: transparent;
    transition: all 0.2s ease;
    outline: none;
    color: inherit;
    box-sizing: border-box;
}

.setting-input:focus,
.setting-textarea:focus,
.setting-select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.setting-textarea {
    resize: vertical;
    min-height: clamp(60px, 15vw, 80px);
    font-family: inherit;
}

/* Buttons */
.setting-button-secondary {
    padding: clamp(6px, 2vw, 8px) clamp(12px, 3vw, 16px);
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: clamp(4px, 1vw, 6px);
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    align-self: flex-start;
    white-space: nowrap;
}

.setting-button-secondary:hover {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.4);
}

.setting-button-danger {
    padding: clamp(6px, 2vw, 8px) clamp(12px, 3vw, 16px);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: clamp(4px, 1vw, 6px);
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ef4444;
    align-self: flex-start;
    white-space: nowrap;
}

.setting-button-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Toggle Switch */
.setting-toggle {
    position: relative;
    width: clamp(36px, 8vw, 44px);
    height: clamp(20px, 4vw, 24px);
    align-self: flex-start;
    flex-shrink: 0;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 128, 128, 0.3);
    border-radius: clamp(10px, 2vw, 12px);
    transition: all 0.2s ease;
    cursor: pointer;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: clamp(14px, 3vw, 18px);
    width: clamp(14px, 3vw, 18px);
    left: clamp(2px, 0.5vw, 3px);
    bottom: clamp(2px, 0.5vw, 3px);
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked+.toggle-slider {
    background: #3b82f6;
}

.toggle-checkbox:checked+.toggle-slider::before {
    transform: translateX(clamp(16px, 4vw, 20px));
}

/* Subscription Card */
.subscription-card {
    padding: clamp(12px, 4vw, 20px);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: clamp(8px, 2vw, 12px);
    background: rgba(128, 128, 128, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(8px, 2vw, 12px);
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 12px);
}

.subscription-plan {
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 600;
    margin: 0;
    word-wrap: break-word;
    flex: 1 1;
    min-width: 0;
    text-align: left;
}

.subscription-status {
    padding: clamp(2px, 1vw, 4px) clamp(8px, 2vw, 12px);
    border-radius: clamp(12px, 3vw, 16px);
    font-size: clamp(10px, 2vw, 12px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.subscription-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 1vw, 4px);
    align-items: flex-start;
}

.subscription-price {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    margin: 0;
    color: #3b82f6;
    word-wrap: break-word;
    text-align: left;
}

.subscription-next {
    font-size: clamp(12px, 2.5vw, 14px);
    opacity: 0.7;
    margin: 0;
    word-wrap: break-word;
    text-align: left;
}

/* Payment Method */
.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: clamp(6px, 1.5vw, 8px);
    background: rgba(128, 128, 128, 0.05);
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 12px);
}

.payment-method>* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Profile Picture Section */
.profile-picture-section {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    flex-wrap: wrap;
    width: 100%;
}

.profile-avatar {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

/* Memory Usage */
.memory-usage {
    padding: clamp(12px, 3vw, 16px);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: clamp(6px, 1.5vw, 8px);
    background: rgba(128, 128, 128, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.usage-bar {
    width: 100%;
    height: clamp(6px, 1.5vw, 8px);
    background: rgba(128, 128, 128, 0.2);
    border-radius: clamp(3px, 1vw, 4px);
    overflow: hidden;
    margin: clamp(6px, 1.5vw, 8px) 0;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: clamp(3px, 1vw, 4px);
    transition: width 0.3s ease;
}

.usage-text {
    font-size: clamp(10px, 2vw, 12px);
    opacity: 0.7;
    margin: 4px 0 0 0;
    word-wrap: break-word;
    text-align: left;
}

/* Features List */
.features-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features-list li {
    padding: 0.1rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    color: rgba(128, 128, 128, 0.8);
}

.features-list li.highlight {
    font-weight: 600;
    color: var(--accent-color, #2563eb);
}

/* Memory List */
.memory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 400px;
}

.memory-item {
    padding: 12px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.05);
    font-size: 12px;
}

.memory-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.memory-text {
    flex: 1 1;
    font-size: 12px;
    color: rgba(128, 128, 128, 0.9);
    text-align: left;
    word-wrap: break-word;
}

.memory-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1;
}

.memory-delete-btn {
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.memory-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.memory-date {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(128, 128, 128, 0.6);
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    padding-top: 6px;
    text-align: left;
}

.memory-loading,
.memory-empty {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: rgba(128, 128, 128, 0.6);
}

.no-facts {
    font-style: italic;
    opacity: 0.6;
}

/* Delete Modal Styles */
.delete-modal-cont {
    position: relative;
    background: inherit;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 12px;
    padding: 16px;
    max-width: 400px;
    width: 90%;
    font-size: 12px;
}

.delete-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.delete-modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.delete-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-section {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    font-size: 12px;
}

.warning-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.warning-text {
    margin: 0;
    font-size: 12px;
    color: #ef4444;
}

.delete-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Theme Specific Styles */
html.dark .modal-setting-body {
    background-color: rgba(0, 0, 0, 0.4);
}

html.dark .modal-setting-cont {
    background: linear-gradient(135deg, #1C273B 0%, #191E2B 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .modal-setting-close-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

html.dark .modal-setting-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

html.dark .settings-content {
    background: var(--prop-dark-bg, transparent);
}

html.dark .settings-section {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

html.dark .sidebar-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

html.dark .setting-input,
html.dark .setting-textarea,
html.dark .setting-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

html.dark .setting-input::placeholder,
html.dark .setting-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

html.dark .setting-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

html.dark .setting-button-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

html.dark .subscription-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .payment-method {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .memory-usage {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .memory-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .delete-modal-cont {
    background: linear-gradient(135deg, #1C273B 0%, #191E2B 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
}

html.dark .toggle-slider::before {
    background: #e5e7eb;
}

/* Light Theme Styles */
html.light .modal-setting-body {
    background-color: rgba(255, 255, 255, 0.2);
}

html.light .modal-setting-cont {
    background: linear-gradient(135deg, #D6E2FB 0%, #E3EBFD 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .modal-setting-close-btn {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000000;
}

html.light .modal-setting-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

html.light .settings-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .settings-content {
    background: var(--prop-white-bg, transparent);
}

html.light .sidebar-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

html.light .sidebar-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

html.light .setting-input,
html.light .setting-textarea,
html.light .setting-select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000000;
}

html.light .setting-input::placeholder,
html.light .setting-textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

html.light .setting-button-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000000;
}

html.light .setting-button-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

html.light .subscription-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .payment-method {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .memory-usage {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .memory-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

html.light .toggle-slider {
    background: rgba(0, 0, 0, 0.2);
}

html.light .toggle-slider::before {
    background: #ffffff;
}

/* Responsive Design */
/* Responsive Breakpoints - Continuation */

/* Extra Large Screens (4K/UltraWide) */
@media screen and (min-width: 1920px) {
    .modal-setting-wrapper {
        max-width: 1400px;
    }

    .modal-setting-cont {
        min-width: 800px;
        gap: 40px;
    }

    .settings-sidebar {
        min-width: 250px;
    }
}

/* Large Desktop */
@media screen and (min-width: 1200px) and (max-width: 1919px) {
    .modal-setting-cont {
        min-width: 700px;
        gap: 32px;
    }

    .settings-sidebar {
        min-width: 220px;
    }
}

/* Desktop */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .modal-setting-cont {
        min-width: 600px;
        gap: 28px;
    }

    .settings-sidebar {
        min-width: 200px;
    }
}

/* Large Tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .modal-setting-body {
        padding: 12px;
    }

    .modal-setting-cont {
        min-width: 500px;
        max-width: 95%;
        gap: 24px;
        border-radius: 20px;
    }

    .settings-sidebar {
        min-width: 180px;
    }
}

/* Tablet Portrait & Small Tablet */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .modal-setting-body {
        padding: 12px;
        align-items: flex-start;
        padding-top: clamp(20px, 5vh, 40px);
    }

    .modal-setting-cont {
        flex-direction: column;
        min-width: 400px;
        max-width: 95%;
        gap: 16px;
        border-radius: 20px;
        align-items: center;
    }

    .settings-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        min-width: 100%;
        height: auto;
        gap: 2px;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .settings-sidebar::-webkit-scrollbar {
        height: 4px;
    }

    .settings-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .settings-sidebar::-webkit-scrollbar-thumb {
        background: rgba(128, 128, 128, 0.3);
        border-radius: 2px;
    }

    .sidebar-item {
        min-width: max-content;
        justify-content: center;
        padding: 5px 8px;
        white-space: nowrap;
        flex-shrink: 0;
        max-width: 60px;
        gap: 2px;
    }

    .settings-main {
        width: 100%;
        min-width: 100%;
    }

    .settings-content {
        padding: 16px 8px;
    }

    .profile-picture-section {
        justify-content: center;
    }

    .payment-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Mobile Landscape & Small Mobile */
@media screen and (max-width: 480px) {
    .modal-setting-body {
        padding: 8px;
        align-items: flex-start;
        padding-top: clamp(40px, 8vh, 60px);
    }

    .modal-setting-wrapper {
        max-height: calc(100vh - 60px);
        width: 100%;
    }

    .modal-setting-cont {
        flex-direction: column;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        gap: 16px;
        border-radius: 16px;
        margin: 0;
        max-height: calc(100vh - 120px);
        align-items: center;
    }

    .modal-setting-close-btn {
        margin-bottom: 8px;
    }

    .settings-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        min-width: 100%;
        height: auto;
        gap: 6px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .sidebar-item {
        min-width: max-content;
        justify-content: center;
        padding: 5px 10px;
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 13px;
        max-width: 100px;
    }

    .settings-main {
        width: 100%;
        min-width: 100%;
    }

    .settings-content {
        padding: 12px 4px;
    }

    .profile-picture-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .payment-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }

    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 320px) {
    .modal-setting-body {
        padding: 4px;
        padding-top: clamp(20px, 6vh, 40px);
    }

    .modal-setting-cont {
        gap: 12px;
        border-radius: 12px;
        max-height: calc(100vh - 80px);
    }

    .modal-setting-close-btn {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
    }

    .modal-setting-close-btn svg {
        width: 12px;
        height: 12px;
    }

    .settings-sidebar {
        gap: 4px;
        padding-bottom: 6px;
    }

    .sidebar-item {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .settings-content {
        gap: 12px;
    }

    .settings-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .settings-subtitle {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .settings-section {
        gap: 8px;
        border-radius: 8px;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .subscription-plan {
        font-size: 14px;
    }

    .subscription-price {
        font-size: 16px;
    }

    .subscription-status {
        padding: 2px 6px;
        font-size: 9px;
        border-radius: 10px;
    }

    .setting-toggle {
        width: 32px;
        height: 18px;
    }

    .toggle-slider::before {
        height: 12px;
        width: 12px;
        left: 2px;
        bottom: 2px;
    }

    .toggle-checkbox:checked+.toggle-slider::before {
        transform: translateX(14px);
    }
}

/* High DPI/Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .modal-setting-cont {
        box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .toggle-slider::before {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {

    .modal-setting-body,
    .modal-setting-wrapper,
    .modal-setting-close-btn,
    .sidebar-item,
    .setting-input,
    .setting-textarea,
    .setting-select,
    .setting-button-secondary,
    .setting-button-danger,
    .toggle-slider,
    .toggle-slider::before,
    .usage-fill {
        transition: none;
    }

    .modal-setting-visible .modal-setting-wrapper {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .modal-setting-body {
        position: static;
        background: none;
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
    }

    .modal-setting-wrapper {
        max-width: none;
        max-height: none;
        transform: none;
    }

    .modal-setting-cont {
        box-shadow: none;
        border: 1px solid #ccc;
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
        background: white;
        max-height: none;
        overflow: visible;
    }

    .modal-setting-close-btn {
        display: none;
    }

    .settings-sidebar {
        border-right: 1px solid #ccc;
        padding-right: 20px;
    }

    .sidebar-item {
        background: none !important;
        border: none !important;
    }

    .sidebar-item.active {
        font-weight: bold;
        color: black !important;
    }
}

/* Focus Visible for Accessibility */
.modal-setting-close-btn:focus-visible,
.sidebar-item:focus-visible,
.setting-input:focus-visible,
.setting-textarea:focus-visible,
.setting-select:focus-visible,
.setting-button-secondary:focus-visible,
.setting-button-danger:focus-visible,
.toggle-checkbox:focus-visible+.toggle-slider {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom Properties for Dynamic Theming */
:root {
    --modal-backdrop-blur: 16px;
    --modal-border-radius: clamp(12px, 3vw, 24px);
    --modal-padding: clamp(8px, 2vw, 20px);
    --modal-gap: clamp(12px, 3vw, 24px);
    --sidebar-width: clamp(150px, 25vw, 200px);
    --animation-duration: 0.3s;
    --animation-easing: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Animation Keyframes */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

/* Loading States */
.setting-input:disabled,
.setting-textarea:disabled,
.setting-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.setting-button-secondary:disabled,
.setting-button-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    animation: skeleton-loading 1.5s infinite linear;
    background: linear-gradient(90deg,
            rgba(128, 128, 128, 0.1) 25%,
            rgba(128, 128, 128, 0.2) 50%,
            rgba(128, 128, 128, 0.1) 75%);
    background-size: 200px 100%;
}

/* Error States */
.setting-input.error,
.setting-textarea.error,
.setting-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.error-message {
    font-size: clamp(10px, 2vw, 12px);
    color: #ef4444;
    margin-top: 4px;
    word-wrap: break-word;
}

/* Success States */
.setting-input.success,
.setting-textarea.success,
.setting-select.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.success-message {
    font-size: clamp(10px, 2vw, 12px);
    color: #22c55e;
    margin-top: 4px;
    word-wrap: break-word;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

/* Performance Optimizations */
.modal-setting-body,
.modal-setting-wrapper,
.modal-setting-cont {
    will-change: transform, opacity;
}

.modal-setting-visible .modal-setting-body,
.modal-setting-visible .modal-setting-wrapper {
    will-change: auto;
}
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Container */
.modal-container {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.3s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Light theme styles */
html.light .modal-container {
    background: var(--prop-white-bg);
    color: #0E1111;
    border-color: rgba(74, 128, 239, 0.2);
}

/* Dark theme styles */
html.dark .modal-container {
    background: var(--prop-dark-bg);
    color: whitesmoke;
    border-color: rgba(74, 128, 239, 0.3);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, rgba(var(--bg-color1), 1), rgba(var(--bg-color1), 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

html.light .close-button {
    color: #666;
}

html.dark .close-button {
    color: #ccc;
}

.close-button:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Modal Content */
.modal-content {
    padding: 0 24px 24px 24px;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

html.light .form-group label {
    color: #374151;
}

html.dark .form-group label {
    color: #E5E7EB;
}

.form-group input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* Light theme input */
html.light .form-group input {
    background: rgba(255, 255, 255, 0.8);
    color: #0E1111;
    border-color: rgba(74, 128, 239, 0.2);
}

html.light .form-group input:focus {
    border-color: rgba(var(--bg-color1), 0.6);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(var(--bg-color1), 0.1);
}

html.light .form-group input::placeholder {
    color: #9CA3AF;
}

/* Dark theme input */
html.dark .form-group input {
    background: rgba(255, 255, 255, 0.05);
    color: whitesmoke;
    border-color: rgba(74, 128, 239, 0.3);
}

html.dark .form-group input:focus {
    border-color: rgba(var(--bg-color1), 0.8);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(var(--bg-color1), 0.15);
}

html.dark .form-group input::placeholder {
    color: #6B7280;
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group small {
    font-size: 12px;
    margin-top: 4px;
}

html.light .form-group small {
    color: #6B7280;
}

html.dark .form-group small {
    color: #9CA3AF;
}

/* Button Styles */
.submit-button,
.back-button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.submit-button {
    background: linear-gradient(135deg, rgba(var(--bg-color1), 1), rgba(var(--bg-color1), 0.8));
    color: white;
    flex: 1 1;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bg-color1), 0.4);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-button {
    background: transparent;
    border: 2px solid rgba(var(--bg-color1), 0.3);
    flex: 0.8 1;
}

html.light .back-button {
    color: rgba(var(--bg-color1), 1);
}

html.dark .back-button {
    color: rgba(var(--bg-color1), 0.9);
}

.back-button:hover:not(:disabled) {
    background: rgba(var(--bg-color1), 0.1);
    border-color: rgba(var(--bg-color1), 0.5);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Message Styles */
.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #DC2626;
}

html.dark .error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #059669;
}

html.dark .success-message {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 16px;
    }

    .modal-container {
        max-width: 100%;
        margin: 0;
    }

    .modal-header {
        padding: 20px 20px 0 20px;
    }

    .modal-content {
        padding: 0 20px 20px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .back-button {
        flex: 1 1;
    }
}

/* Loading Animation */
.submit-button:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    gap: 8px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: rgba(var(--bg-color1), 1);
}

.step-dot.completed {
    background: rgba(34, 197, 94, 1);
}

.step-dot.inactive {
    background: rgba(156, 163, 175, 0.4);
}
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Container */
.modal-container {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.3s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Light theme styles */
html.light .modal-container {
    background: var(--prop-white-bg);
    color: #0E1111;
    border-color: rgba(74, 128, 239, 0.2);
}

/* Dark theme styles */
html.dark .modal-container {
    background: var(--prop-dark-bg);
    color: whitesmoke;
    border-color: rgba(74, 128, 239, 0.3);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, rgba(var(--bg-color1), 1), rgba(var(--bg-color1), 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

html.light .close-button {
    color: #666;
}

html.dark .close-button {
    color: #ccc;
}

.close-button:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Modal Content */
.modal-content {
    padding: 0 24px 24px 24px;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

html.light .form-group label {
    color: #374151;
}

html.dark .form-group label {
    color: #E5E7EB;
}

.form-group input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* Light theme input */
html.light .form-group input {
    background: rgba(255, 255, 255, 0.8);
    color: #0E1111;
    border-color: rgba(74, 128, 239, 0.2);
}

html.light .form-group input:focus {
    border-color: rgba(var(--bg-color1), 0.6);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(var(--bg-color1), 0.1);
}

html.light .form-group input::placeholder {
    color: #9CA3AF;
}

/* Dark theme input */
html.dark .form-group input {
    background: rgba(255, 255, 255, 0.05);
    color: whitesmoke;
    border-color: rgba(74, 128, 239, 0.3);
}

html.dark .form-group input:focus {
    border-color: rgba(var(--bg-color1), 0.8);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(var(--bg-color1), 0.15);
}

html.dark .form-group input::placeholder {
    color: #6B7280;
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group small {
    font-size: 12px;
    margin-top: 4px;
}

html.light .form-group small {
    color: #6B7280;
}

html.dark .form-group small {
    color: #9CA3AF;
}

/* Button Styles */
.submit-button,
.back-button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.submit-button {
    background: linear-gradient(135deg, rgba(var(--bg-color1), 1), rgba(var(--bg-color1), 0.8));
    color: white;
    flex: 1 1;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bg-color1), 0.4);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-button {
    background: transparent;
    border: 2px solid rgba(var(--bg-color1), 0.3);
    flex: 0.8 1;
}

html.light .back-button {
    color: rgba(var(--bg-color1), 1);
}

html.dark .back-button {
    color: rgba(var(--bg-color1), 0.9);
}

.back-button:hover:not(:disabled) {
    background: rgba(var(--bg-color1), 0.1);
    border-color: rgba(var(--bg-color1), 0.5);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Message Styles */
.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #DC2626;
}

html.dark .error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #059669;
}

html.dark .success-message {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 16px;
    }

    .modal-container {
        max-width: 100%;
        margin: 0;
    }

    .modal-header {
        padding: 20px 20px 0 20px;
    }

    .modal-content {
        padding: 0 20px 20px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .back-button {
        flex: 1 1;
    }
}

/* Loading Animation */
.submit-button:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Character count indicator */
.form-group .character-count {
    font-size: 11px;
    text-align: right;
    margin-top: 2px;
}

html.light .form-group .character-count {
    color: #9CA3AF;
}

html.dark .form-group .character-count {
    color: #6B7280;
}
/* Modal Overlay */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 20px;
    opacity: 0;
    animation: deleteModalFadeIn 0.3s ease-out forwards;
}

@keyframes deleteModalFadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Container */
.delete-modal-container {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: deleteModalSlideUp 0.3s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes deleteModalSlideUp {
    to {
        transform: translateY(0);
    }
}

/* Light theme styles */
html.light .delete-modal-container {
    background: var(--prop-white-bg);
    color: #0E1111;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Dark theme styles */
html.dark .delete-modal-container {
    background: var(--prop-dark-bg);
    color: whitesmoke;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Modal Header */
.delete-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    margin-bottom: 20px;
}

.delete-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #DC2626;
}

html.dark .delete-modal-header h2 {
    color: #F87171;
}

.delete-close-button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

html.light .delete-close-button {
    color: #666;
}

html.dark .delete-close-button {
    color: #ccc;
}

.delete-close-button:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Modal Content */
.delete-modal-content {
    padding: 0 24px 24px 24px;
}

/* Warning Section */
.delete-warning-section {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid;
}

html.light .delete-warning-section {
    background: rgba(255, 243, 224, 0.6);
    border-color: rgba(245, 158, 11, 0.3);
}

html.dark .delete-warning-section {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.delete-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.delete-warning-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

html.light .delete-warning-content h3 {
    color: #92400e;
}

html.dark .delete-warning-content h3 {
    color: #FCD34D;
}

.delete-warning-content p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

html.light .delete-warning-content p {
    color: #78350f;
}

html.dark .delete-warning-content p {
    color: #FDE68A;
}

.delete-warning-content strong {
    font-weight: 600;
}

/* Form Styles */
.delete-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delete-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delete-form-group label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

html.light .delete-form-group label {
    color: #374151;
}

html.dark .delete-form-group label {
    color: #E5E7EB;
}

.delete-form-group strong {
    color: #DC2626;
}

html.dark .delete-form-group strong {
    color: #F87171;
}

.delete-form-group input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* Light theme input */
html.light .delete-form-group input {
    background: rgba(255, 255, 255, 0.8);
    color: #0E1111;
    border-color: rgba(239, 68, 68, 0.2);
}

html.light .delete-form-group input:focus {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

html.light .delete-form-group input::placeholder {
    color: #9CA3AF;
}

/* Dark theme input */
html.dark .delete-form-group input {
    background: rgba(255, 255, 255, 0.05);
    color: whitesmoke;
    border-color: rgba(239, 68, 68, 0.3);
}

html.dark .delete-form-group input:focus {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

html.dark .delete-form-group input::placeholder {
    color: #6B7280;
}

.delete-form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Styles */
.delete-confirm-button,
.delete-cancel-button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.delete-confirm-button {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: white;
    flex: 1 1;
}

.delete-confirm-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #B91C1C, #991B1B);
}

.delete-confirm-button:active:not(:disabled) {
    transform: translateY(0);
}

.delete-confirm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #9CA3AF;
}

.delete-cancel-button {
    background: transparent;
    border: 2px solid;
    flex: 0.8 1;
}

html.light .delete-cancel-button {
    color: #6B7280;
    border-color: #D1D5DB;
}

html.dark .delete-cancel-button {
    color: #9CA3AF;
    border-color: #4B5563;
}

.delete-cancel-button:hover:not(:disabled) {
    background: rgba(107, 114, 128, 0.1);
}

html.light .delete-cancel-button:hover:not(:disabled) {
    border-color: #9CA3AF;
}

html.dark .delete-cancel-button:hover:not(:disabled) {
    border-color: #6B7280;
}

.delete-button-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Message Styles */
.delete-error-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #DC2626;
}

html.dark .delete-error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

/* Responsive Design */
@media (max-width: 768px) {
    .delete-modal-overlay {
        padding: 16px;
    }

    .delete-modal-container {
        max-width: 100%;
        margin: 0;
    }

    .delete-modal-header {
        padding: 20px 20px 0 20px;
    }

    .delete-modal-content {
        padding: 0 20px 20px 20px;
    }

    .delete-modal-header h2 {
        font-size: 20px;
    }

    .delete-warning-section {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .delete-warning-icon {
        font-size: 32px;
        margin: 0;
    }

    .delete-button-group {
        flex-direction: column;
    }

    .delete-cancel-button {
        flex: 1 1;
    }
}

/* Loading Animation */
.delete-confirm-button:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: deleteModalSpin 1s linear infinite;
}

@keyframes deleteModalSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* LoginModal Styles */
.login-modal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 12px;
    min-width: 350px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.login-modal h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.login-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-modal button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.login-modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-modal button:active {
    transform: translateY(0);
}

.login-modal button:first-of-type {
    background: rgba(var(--bg-color1), 1);
    color: white;
    border: 2px solid rgba(var(--bg-color1), 1);
}

.login-modal button:first-of-type:hover {
    background: rgba(var(--bg-color1), 0.9);
    border-color: rgba(var(--bg-color1), 0.9);
}

.login-modal button:nth-of-type(2) {
    background: transparent;
    border: 2px solid rgba(var(--bg-color1), 0.3);
}

.login-modal button:last-of-type {
    background: transparent;
    border: 2px solid rgba(128, 128, 128, 0.3);
    font-size: 0.9rem;
}

/* Light theme styles */

html.light .login-modal h3 {
    color: #0E1111;
}

html.light .login-modal button:nth-of-type(2) {
    color: #0E1111;
    border-color: rgba(var(--bg-color1), 0.3);
}

html.light .login-modal button:nth-of-type(2):hover {
    background: rgba(var(--bg-color1), 0.05);
    border-color: rgba(var(--bg-color1), 0.5);
}

html.light .login-modal button:last-of-type {
    color: #666;
    border-color: rgba(128, 128, 128, 0.3);
}

html.light .login-modal button:last-of-type:hover {
    background: rgba(128, 128, 128, 0.05);
    border-color: rgba(128, 128, 128, 0.5);
    color: #333;
}

/* Dark theme styles */

html.dark .login-modal h3 {
    color: whitesmoke;
}

html.dark .login-modal button:nth-of-type(2) {
    color: whitesmoke;
    border-color: rgba(var(--bg-color1), 0.4);
}

html.dark .login-modal button:nth-of-type(2):hover {
    background: rgba(var(--bg-color1), 0.1);
    border-color: rgba(var(--bg-color1), 0.6);
}

html.dark .login-modal button:last-of-type {
    color: #aaa;
    border-color: rgba(128, 128, 128, 0.4);
}

html.dark .login-modal button:last-of-type:hover {
    background: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.6);
    color: #ccc;
}

/* Focus states for accessibility */
.login-modal button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--bg-color1), 0.3);
}

/* Responsive design */
@media (max-width: 480px) {
    .login-modal {
        min-width: 300px;
        padding: 1.5rem;
    }

    .login-modal h3 {
        font-size: 1.125rem;
    }

    .login-modal button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}
