/* PrestijEdu | Reusable cards, headings, forms, buttons and action rows */
/* ==========================================================================
   5. ORTAK BİLEŞENLER (KARTLAR, BAŞLIKLAR)
   ========================================================================== */
.dashboard-header {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.dashboard-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 30px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
}


.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-primary,
.btn-secondary {
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* ==========================================================================
   ORTAK CUSTOM CHECKBOX
   ========================================================================== */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    background: rgba(9, 9, 11, 0.4);
    border: 1px solid #3f3f46;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #a1a1aa;
    background: rgba(24, 24, 27, 0.8);
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #e4e4e7 0%, #a1a1aa 100%);
    border-color: #e4e4e7;
    box-shadow:
            0 0 12px rgba(228, 228, 231, 0.3),
            inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    width: 5px;
    height: 10px;
    border: solid #09090b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    margin-top: -7px;
    margin-left: -3.5px;
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
    animation: checkmarkPop 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.custom-checkbox .label-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.custom-checkbox:hover .label-text {
    color: rgba(255, 255, 255, 0.95);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(45deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

.async-load-state {
    width: 100%;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    color: #94a3b8;
    text-align: center;
}

.async-load-state > i {
    color: #60a5fa;
    font-size: 28px;
}

.async-load-state > strong {
    color: #e2e8f0;
    font-size: 14px;
}

.async-load-state > span {
    max-width: 620px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.async-load-state-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.055);
}

.async-load-state-error > i {
    color: #f87171;
}

.async-load-state-page {
    margin-bottom: 24px;
}

.async-load-retry-button {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 9px;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.14);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.async-load-retry-button:hover:not(:disabled) {
    border-color: #60a5fa;
    background: rgba(59, 130, 246, 0.24);
}

.async-load-retry-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.async-load-retry-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ==========================================================================
   ORTAK MOBİL BİLEŞEN UYUMU
   ========================================================================== */

@media (max-width: 768px) {
    .dashboard-header,
    .dashboard-grid,
    .dashboard-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .dashboard-header {
        margin-bottom: 24px;
    }

    .dashboard-title {
        max-width: 100%;
        margin: 0 0 8px;
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.15;
        letter-spacing: -0.35px;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .dashboard-subtitle {
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
    }

    .dashboard-grid {
        gap: 18px;
    }

    .dashboard-card {
        min-width: 0;
        padding: 20px;
        border-radius: 14px;
    }

    .card-title {
        flex-wrap: wrap;
        gap: 10px;
        margin: 0 0 18px;
        padding-bottom: 14px;
        font-size: 18px;
        line-height: 1.35;
    }

    .card-title i {
        flex-shrink: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-control {
        min-width: 0;
        padding: 12px 14px;
        font-size: 16px;
    }

    .actions-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }

    .async-load-state {
        min-height: 110px;
        padding: 18px;
    }

    .async-load-state-page {
        margin-bottom: 18px;
    }
}

@media (max-width: 380px) {
    .dashboard-card {
        padding: 16px;
        border-radius: 13px;
    }

    .dashboard-title {
        font-size: 23px;
    }

    .card-title {
        font-size: 17px;
    }
}