* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Space Grotesk", sans-serif;
}

:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --background: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --sidebar-width: 240px;
    --header-height: 64px;
    --card-bg: #ffffff;
    --hover-bg: #ecf0f1;
    --shadow-color: rgba(0, 0, 0, 0.1);
}


body {
    background: var(--background);
    padding: 2rem;
    color: var(--text-primary);
}

.effect {
    background-color: #e5e5f7;
    opacity: 0.9;
    background-size: 7px 14px;
    background-image: repeating-linear-gradient(45deg, #d1d8ff 0, #d1d8ff 1px, #f5f5f5 0, #f5f5f5 50%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.login .container {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 450px;
    max-height: 700px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 0.5px solid rgba(32, 33, 36, 0.176);
    transition: all 0.3s ease;
    margin-right: 2rem;
    position: fixed;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.image {
    flex: 1;
}

.image img {
    width: 100%;
    height: 100%;
    margin: 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    object-fit: cover;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .container {
        margin-right: 0;
        margin-bottom: 1.5rem;
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
    }

    .image img {
        width: 100%;
        height: auto;
        position: static;
        transform: none;
        margin: 1rem 0;
    }
}


.login h2,
.login h3,
.login h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.login h2 {
    font-size: 1.875rem;
    text-align: center;
}

.login form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.login .form-group {
    position: relative;
}

.login label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.login input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--background);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.login input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.login .input-icon {
    position: relative;
}

.login .input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.login .input-icon input {
    padding-left: 2.75rem;
}

.login button {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.login button:active {
    transform: translateY(0);
}

.login .switch-form {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.login .switch-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login .switch-form a:hover {
    color: var(--primary-hover);
}

.error {
    color: var(--error-color);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.card-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.qr-container {
    background: var(--background);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin: 2rem 0;
}

.qr-container img {
    max-width: 200px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

.badge-offline {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }


    .card {
        padding: 1rem;
    }

    .qr-container {
        padding: 1rem;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--background);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(200%);
    transition: transform 0.3s ease;
    z-index: 1000;
    font-size: 20px;
}

.toast.show {
    transform: translateY(0);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: .8rem 1.2rem;
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--hover-bg);
}

.nav-item:active {
    transform: scale(0.98);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-field {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-field input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.logout-button {
    margin-top: auto;
    padding: 0.75rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }
}


.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-field {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-field label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-field p {
    color: var(--text-primary);
    font-size: 1.1rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.device-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.device-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.device-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.device-info h4 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.device-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.security-events {
    list-style-type: none;
    padding: 0;
}

.security-events li {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.security-events i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.security-events span {
    color: var(--text-primary);
}

.connected-apps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.app-info {
    flex-grow: 1;
}

.app-info h4 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.app-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.disconnect-btn {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 100px;
}

.disconnect-btn:hover {
    background-color: #c0392b;
}



.dashboard {
    display: flex;
    background: var(--background);
    min-height: 100vh;
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    flex-direction: row;
}

.dashboard-sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: 2rem 0 0 2rem;
}

.sidebar-header {
    padding: 0 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #1d1d1f;
}

.sidebar-header p {
    font-size: 0.9rem;
    color: #86868b;
    margin: 0;
}

.nav-item {
    padding: 0.8rem 1rem;
    margin: 0.3rem 0;
    border-radius: 0.8rem;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-item.active {
    background: #0071e3;
    color: white;
}

.dashboard-content {
    padding: 2rem;
    flex: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #86868b;
    margin: 0 0 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    color: #1d1d1f;
    font-weight: 600;
}

.section-title {
    font-size: 1.8rem;
    color: #1d1d1f;
    margin: 2rem 0 1.5rem;
}

/* Developer Settings specific styles */
.oauth-apps {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.app-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.app-card:last-child {
    border-bottom: none;
}

.app-icon {
    width: 48px;
    height: 48px;
    background: #0071e3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.app-info {
    flex: 1;
}

.app-info h4 {
    margin: 0 0 0.3rem;
    color: #1d1d1f;
}

.app-info p {
    margin: 0;
    color: #86868b;
    font-size: 0.9rem;
}

.app-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #0071e3;
    color: white;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.create-app {
    background: #0071e3;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.create-app:hover {
    background: #0077ed;
}

/* Add Developer Settings section */
#developerSection {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard .section-title {
    color: var(--primary-color);
}

.dashboard form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.dashboard .form-group {
    position: relative;
}

.dashboard label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.dashboard input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--background);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.dashboard input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.dashboard .input-icon {
    position: relative;
}

.dashboard .input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-primary);
    z-index: 1;
}

.dashboard .input-icon input {
    padding-left: 2.75rem;
}

.dashboard button {
    min-width: fit-content;
    width: 20%;
    padding: 12px 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.7rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
}

.dashboard button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.dashboard button:active {
    transform: translateY(0);
}


#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    flex-direction: column;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loadingScreen::after {
    content: "Authenticating...";
    color: #333333;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeIn 2s ease-in-out infinite;
}

@keyframes fadeIn {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}


.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--background-color, #ffffff);
    padding: 2rem;
    border: 1px solid var(--border-color, #e5e7eb);
    width: 90vw;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background-color: var(--background-secondary, #f3f4f6);
    color: var(--text-secondary, #6b7280);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    background-color: var(--background-hover, #e5e7eb);
    color: var(--text-primary, #111827);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.detail-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: baseline;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
}

.detail-value {
    color: var(--text-primary, #111827);
    word-wrap: break-word;
    max-width: 370px;
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-right: 1rem;
    object-fit: cover;
    border: 1px solid var(--border-color, #e5e7eb);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
}

.badge-success {
    background-color: #def7ec;
    color: #03543f;
}

.badge-danger {
    background-color: #fde2e2;
    color: #9b1c1c;
}

.scope-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.scope-badge {
    background-color: var(--primary-color-light, #e1effe);
    color: var(--primary-color, #1e40af);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}


.oauth-apps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--background-color, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.app-card:hover {
    border-color: var(--border-hover-color, #d1d5db);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.app-icon {
    width: 3rem;
    height: 3rem;
    background: var(--background-secondary, #f3f4f6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.app-icon i {
    font-size: 1.5rem;
    color: var(--text-secondary, #6b7280);
}

.app-info {
    flex: 1;
}

.app-info h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.app-info p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

.app-actions {
    display: flex;
    gap: 0.5rem;
}

.create-app {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color, #2563eb);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.create-app:hover {
    background-color: var(--primary-color-dark, #1d4ed8);
}

.modal .form-group {
    margin-bottom: 1rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
}

.modal .form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.profile-container {
    background: var(--card-background);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-header {
    position: relative;
}

.cover-photo {
    height: 200px;
    background: linear-gradient(45deg, #84d6fc, #7dace9);
    position: relative;
}

.profile-photo-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50px;
    z-index: 2;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: var(--card-background);
}

.photo-upload-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-label:hover {
    background: var(--primary-hover);
}

.hidden-input {
    display: none;
}

.profile-info-bar {
    padding: 60px 50px 20px;
    background: var(--card-background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-content {
    padding: 35px 50px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field {
    position: relative;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-field label i {
    margin-right: 7px;
    color: var(--primary-color);
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--card-background);
    color: var(--text-primary);
}

.modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

.modern-input:disabled {
    background: var(--background);
    cursor: not-allowed;
}

textarea.modern-input {
    resize: vertical;
    min-height: 100px;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--background);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-badges .badge i {
    color: var(--primary-color);
}

.save-profile-btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

@media (max-width: 768px) {
    .profile-info-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 80px 20px 20px;
    }

    .profile-photo-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-content {
        padding: 20px;
    }

    .save-profile-btn {
        width: 100%;
        justify-content: center;
    }
}



.security-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.security-overview {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.security-score {
    position: relative;
    width: 100px;
    height: 100px;
}

.security-score-circle {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.security-recommendations {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.recommendation-item i {
    color: var(--success-color);
}

.recommendation-item.warning i {
    color: #f59e0b;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 550px), 1fr));
    gap: 1.5rem;
}

.security-card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge[data-enabled="true"] {
    background: #dcfce7;
    color: #166534;
}

.status-badge[data-enabled="false"] {
    background: #fee2e2;
    color: #991b1b;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.security-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.security-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
}

.password-strength {
    margin-top: 0.75rem;
}

.strength-meter {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.strength-segment {
    height: 4px;
    flex: 1;
    background: var(--border-color);
    border-radius: 2px;
}

.strength-segment.active {
    background: var(--primary-color);
}

.strength-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.requirement.met {
    color: var(--success-color);
}

.requirement i {
    font-size: 0.875rem;
}

.security-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.security-button:hover {
    background: var(--primary-color-dark);
}

.security-button.danger {
    background: #ef4444;
}

.security-button.danger:hover {
    background: #dc2626;
}

.text-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
}

.text-button:hover {
    color: var(--primary-color-dark);
}

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.two-factor-content {
    position: relative;
}

.setup-state {
    display: none;
}

.setup-state.active {
    display: block;
}

.qr-setup {
    text-align: center;
}

.qr-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.qr-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    color: var(--primary-color);
}

.setup-instructions {
    margin-bottom: 1.5rem;
    text-align: left;
}

.instruction-steps {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.instruction-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.code-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.code-input {
    width: 40px;
    height: 48px;
    text-align: center;
    font-size: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
}

.code-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.verification-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.backup-codes {
    margin-bottom: 2rem;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.code-item {
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    text-align: center;
    font-family: monospace;
    font-size: 0.875rem;
}

.danger-zone {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

::selection {
    background: rgb(170, 227, 189);
    color: var(--text-primary);
}


/* PRIVACY PAGE */

.privacy {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.privacy h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.privacy h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.privacy-section {
    background: var(--card-background);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.privacy-section h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.privacy-section h2 i {
    color: var(--primary-color);
}

.privacy-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    background: var(--background);
}

.privacy-option:hover {
    background: var(--hover-bg);
}

.privacy-option-info {
    flex: 1;
}

.privacy-option-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.privacy-option-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 80%;
}

.privacy-toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.privacy-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.privacy-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.privacy-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.privacy-toggle input:checked+.privacy-toggle-slider {
    background-color: var(--primary-color);
}

.privacy-toggle input:checked+.privacy-toggle-slider:before {
    transform: translateX(24px);
}

.privacy-select {
    width: 200px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.privacy-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.privacy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.privacy-footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.privacy-save-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-save-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.privacy-save-btn:active {
    transform: translateY(0);
}

.privacy-banner {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.privacy-banner i {
    font-size: 1.5rem;
}

.events-list {
    margin-top: 20px;
  }
  
  .event-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
  }
  
  .event-item .event-details p {
    margin: 5px 0;
  }

  .switch-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

/* Responsive Design */
@media (max-width: 768px) {
    .privacy {
        padding: 1rem;
    }

    .privacy-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .privacy-option-description {
        max-width: 100%;
    }

    .privacy-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .privacy-save-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    /* Hide images in forms */
    .login .nextUI .image {
      display: none;
    }
  
    /* Adjust form containers */
    .login .nextUI .container {
      width: 100%;
      padding: 20px;

    }
  
    /* Adjust dashboard sidebar */
    .dashboard-sidebar {
      width: 100%;
      position: relative;
    }
  
    /* Adjust dashboard content */
    .dashboard-content {
      margin-left: 0;
    }
  
    /* Stack content grids */
    .content-grid {
      grid-template-columns: 1fr;
    }
  }