/* =========================================================
   SCHEMAS PAGE
========================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
}

.page-subtitle {
    margin-top: 8px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
}


/* =========================================================
   BUTTONS
========================================================= */

/* .primary-btn,
.secondary-btn,
.danger-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;

    min-width: 120px;
    height: 44px;

    padding: 0 18px;

    border-radius: 12px;
    border: none;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: .2s;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: #f1f5f9;
    color: #334155;
}

.secondary-btn:hover {
    background: #e2e8f0;
}

.danger-btn {
    background: #dc2626;
    color: white;
}

.danger-btn:hover {
    background: #b91c1c;
} */


/* =========================================================
   GRID
========================================================= */

.schema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* Desktop */
@media (min-width: 1400px) {
    .schema-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Laptop */
@media (max-width: 1399px) {
    .schema-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .schema-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .schema-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CARD
========================================================= */

.schema-card {
    background: white;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    padding: 18px;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.schema-card:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, .08);
}

.schema-name {
    margin: 0;

    font-size: 18px;
    font-weight: 700;

    color: #0f172a;
}

.schema-description {
    margin: 10px 0 14px;

    color: #64748b;
    font-size: 15px;
    line-height: 1.7;

    min-height: 38px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.schema-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-bottom: 16px;

    color: #94a3b8;
    font-size: 13px;
}

.schema-actions {
    display: flex;
    gap: 12px;
}

.schema-actions button {
    flex: 1;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    padding: 80px 24px;

    background: white;

    border: 2px dashed #dbeafe;
    border-radius: 18px;
}

.empty-icon {
    font-size: 58px;
    margin-bottom: 22px;
}

.empty-state h2 {
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 500px;

    color: #64748b;
    line-height: 1.8;

    margin-bottom: 30px;
}


/* =========================================================
   MODAL
========================================================= */

/* .modal {
    position: fixed;

    inset: 0;

    background: rgba(15, 23, 42, .45);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 1000;
}

.modal-content {
    width: 100%;
    max-width: 420px;

    background: white;

    border-radius: 18px;

    padding: 28px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, .2);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-content p {
    color: #64748b;
    line-height: 1.7;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 26px;
} */


/* =========================================================
   HELPERS
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header .primary-btn {
        width: 100%;
    }

    .schema-grid {
        grid-template-columns: 1fr;
    }

    .schema-actions {
        flex-direction: column;
    }

    .schema-actions button {
        min-height: 42px;
    }

    /* .modal-content {
        padding: 22px;
    } */

}