/* Modal Styles - Clean Professional Design */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.25s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header h3 i {
    color: var(--accent);
    font-size: 1.1rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
    background: var(--bg-secondary);
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Device Info Section */
.device-info {
    margin-bottom: 1.5rem;
}

.device-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-info h4 i {
    color: var(--accent);
    font-size: 0.85rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Settings Section */
.settings-section {
    margin-top: 1.5rem;
}

.settings-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h4 i {
    color: var(--accent);
    font-size: 0.85rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.setting-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-description {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.2s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent);
}

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

/* Select Dropdown */
.setting-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.setting-select:hover {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.05);
}

.setting-select:focus {
    border-color: var(--accent);
}

.setting-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Button */
.settings-btn {
    background: var(--accent);
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.settings-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.settings-btn:active {
    transform: translateY(0);
}

/* Install App Button */
.install-app-btn {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 40px;
    padding: 8px 16px;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.install-app-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    border-color: transparent;
}

.install-app-btn:active {
    transform: translateY(0);
}

.install-app-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Toast */
.juzt-toast {
    animation: slideUp 0.2s ease;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-content {
        width: 90%;
        max-width: 90%;
        border-radius: 20px;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .info-row,
    .setting-item {
        padding: 0.5rem 0;
    }
    
    .info-label,
    .info-value,
    .setting-label {
        font-size: 0.75rem;
    }
    
    .toggle-switch {
        width: 40px;
        height: 20px;
    }
    
    .toggle-slider:before {
        height: 16px;
        width: 16px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }
    
    .settings-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        border-radius: 18px;
    }
    
    .modal-header {
        padding: 0.7rem 0.8rem;
    }
}
/* Add to css/modal.css */

/* Profile Modal Styles */
.profile-modal .modal-content {
    max-width: 450px;
    margin: 20px auto;
    background: var(--bg-secondary);
    border-radius: 24px;
}

.profile-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-md);
}

.profile-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-label i {
    color: var(--accent);
    font-size: 0.9rem;
}

.profile-name-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.profile-name-display span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.profile-action-btn {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-action-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: translateY(-1px);
}

.admin-section {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
}

.admin-status {
    text-align: center;
}

.admin-badge-large {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-login-section {
    text-align: center;
}

.admin-login-input-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.profile-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}

.profile-input:focus {
    border-color: var(--accent);
}

.admin-login-btn {
    background: var(--accent);
    color: white;
    border: none;
}

.admin-login-btn:hover {
    background: var(--accent-dark);
}

.admin-logout {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.admin-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

.notification-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-toggle span {
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .profile-modal .modal-content {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .profile-name-display {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-login-input-group {
        flex-direction: column;
    }
    
    .notification-toggle {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-action-btn {
        width: 100%;
        justify-content: center;
    }
}

