:root {
    --indigo: #6366f1;
    --cyan: #06b6d4;
    --night: #0f172a;
}

* {
    scroll-behavior: smooth;
}

.nav-link {
    padding: 0.4rem 0.2rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgb(51 65 85);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.dark .nav-link {
    color: rgb(203 213 225);
}

.nav-link:hover {
    color: rgb(67 56 202);
    border-bottom-color: rgba(99, 102, 241, 0.7);
}

.dark .nav-link:hover {
    color: rgb(165 180 252);
    border-bottom-color: rgba(129, 140, 248, 0.85);
}

.brand-mark {
    position: relative;
}




.logo-image {
    width: 40%;
   
    border-radius: 0.55rem;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.auth-logo-main {
    width: clamp(2.6rem, 5vw, 3.5rem);
    height: clamp(2.6rem, 5vw, 3.5rem);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.22rem;
}

.auth-logo-compact {
    width: 60%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border: 0;
}

@media (max-width: 1100px) {
    .nav-link {
        font-size: 0.82rem;
    }
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 60px -40px rgba(15, 23, 42, 0.45);
}

.dark .card {
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(15, 23, 42, 0.72);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
    border-radius: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    color: white;
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.12);
    color: rgb(55 48 163);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: rgb(185 28 28);
}

.btn-success {
    background: rgba(16, 185, 129, 0.12);
    color: rgb(6 95 70);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-success:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.input,
.textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 0.65rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dark .input,
.dark .textarea {
    border-color: rgba(100, 116, 139, 0.45);
    background: rgba(15, 23, 42, 0.55);
    color: rgb(226 232 240);
}

.input:focus,
.textarea:focus,
select.input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

select.input {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(51, 65, 85, 0.8) 50%),
        linear-gradient(135deg, rgba(51, 65, 85, 0.8) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 13px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
}

.dark select.input {
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(203, 213, 225, 0.85) 50%),
        linear-gradient(135deg, rgba(203, 213, 225, 0.85) 50%, transparent 50%);
}

.label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgb(51 65 85);
}

.dark .label {
    color: rgb(148 163 184);
}

.form-shell {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.9));
}

.dark .form-shell {
    border-color: rgba(100, 116, 139, 0.35);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.65));
}

.form-header {
    margin-bottom: 0.8rem;
}

.form-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(79 70 229);
    background: rgba(99, 102, 241, 0.12);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
}

.form-title {
    margin-top: 0.55rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: rgb(15 23 42);
}

.dark .form-title {
    color: rgb(226 232 240);
}

.form-subtitle {
    margin-top: 0.25rem;
    color: rgb(100 116 139);
    font-size: 0.85rem;
}

.dark .form-subtitle {
    color: rgb(148 163 184);
}

.form-section {
    margin-top: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.95rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
}

.dark .form-section {
    border-color: rgba(100, 116, 139, 0.34);
    background: rgba(15, 23, 42, 0.42);
}

.form-actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.9rem;
}

.table {
    width: 100%;
    font-size: 0.9rem;
}

.table thead th {
    text-align: left;
    padding: 0.65rem;
    color: rgb(71 85 105);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.table td {
    padding: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.badge {
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    background: rgba(6, 182, 212, 0.12);
    color: rgb(8 145 178);
    font-size: 0.74rem;
    font-weight: 600;
}

.stat-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    padding: 1rem;
}

.dark .stat-card {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(100, 116, 139, 0.4);
}

.stat-card p {
    font-size: 0.8rem;
    color: rgb(100 116 139);
}

.stat-card h3 {
    margin-top: 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.upload-zone {
    display: block;
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: 1rem;
    padding: 1.2rem;
    text-align: center;
    background: rgba(99, 102, 241, 0.06);
    cursor: pointer;
}

.tooth {
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.tooth.active {
    border-color: rgb(6 182 212);
    background: rgba(6, 182, 212, 0.2);
    color: rgb(14 116 144);
}

.fade-in {
    animation: fadeIn 0.45s ease;
}

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