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

/* Base button */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

/* Button variants */
.btn-primary {
    background-color: #0f172a;
    color: white;
}

.btn-secondary {
    background-color: white;
    border: 1px solid #2dd4bf;
    color: #2dd4bf;
}

.btn-outline {
    background-color: white;
    border: 1px solid #e5e7eb;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
}

/* Button sizes */
.btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}

/* Icon button */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: #f8fafc;
}

/* Button with icon */
.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* Button grouping */
.btn-list {
    display: flex;
    gap: 8px;
}

/* ========================================
   FORM CONTROLS
   ======================================== */

/* Input field */
.input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.input:focus {
    border-color: #0f172a;
}

.input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Filter form components */
.filter-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

/* ========================================
   SEARCH COMPONENTS
   ======================================== */

/* Search bar */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.search-form {
    display: flex;
    gap: 8px;
}

/* Search card (advanced filters) */
.search-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

/* ========================================
   TABLE COMPONENTS
   ======================================== */

/* Table container */
.table-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Table header */
.table-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
}

.table-description {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
}

/* Table structure */
.table {
    display: flex;
    flex-direction: column;
}

.table-head {
    background-color: #f1f5f9;
}

.table-row {
    display: flex;
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.table-head .table-row {
    border-top: none;
}

.table-row:hover {
    background-color: #f8fafc;
}

.table-cell {
    padding: 12px;
    display: flex;
    align-items: center;
}

/* Table column sizes */
.table-cell--id {
    flex: 1;
}

.table-cell--name {
    flex: 2;
}

.table-cell--school {
    flex: 3;
}

/* Table footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

.table-count {
    color: #64748b;
    font-size: 14px;
}

/* Empty state */
.empty {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

/* ========================================
   PAGINATION
   ======================================== */

/* Basic pagination info */
.pagination {
    padding: 16px;
    color: #64748b;
}

/* Pagination buttons */
.pagination-group {
    display: flex;
    gap: 8px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background-color: #f8fafc;
}

.page-btn.active {
    background-color: #0f172a;
    color: white;
}

.page-btn:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.page-btn:disabled:hover {
    background-color: #f3f4f6;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Page header layout */
.page-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.page-title-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #94a3b8;
    padding: 6px 0;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1e293b;
    text-decoration: underline;
}

.breadcrumb span {
    color: #94a3b8;
}

/* ========================================
   UI ELEMENTS
   ======================================== */

/* Links */
a {
    text-decoration: none;
    color: #0f172a;
}

a:hover {
    text-decoration: underline;
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}

/* Memo box */
.memo-box {
    margin: 0 24px 24px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}