@import url('../../styles/base/colors.css');
@import url('../../styles/base/design-tokens.css');
@import url('../../styles/components/snackbar.css');
@import url('../../styles/components/badges.css');
@import url('../../styles/components/tables.css');

/* ========================================
   STUDENT DATABASE STYLES
   Extends admin.css with student-specific layouts
   ======================================== */

/* ========================================
   STUDENT DATABASE PAGE
   ======================================== */

.database-main {
    flex: 1;
    padding: var(--space-xl) 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.database-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.database-title h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.student-count {
    font-size: 0.95rem;
    opacity: 0.7;
    color: var(--text-primary);
}

.student-count span {
    font-weight: 600;
    color: var(--purple-primary);
}

/* Button styles inherited from admin-modals.css */

/* Header styles inherited from admin.css */

/* ========================================
   SEARCH SECTION
   ======================================== */

.database-search {
    margin-bottom: var(--space-lg);
}

/* Search box styles moved to admin.css (shared component) */

/* Filter Controls */
.filter-controls {
    margin-top: var(--space-sm);
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-checkbox:hover span {
    color: var(--purple-primary);
}

/* ========================================
   STUDENTS TABLE
   ======================================== */

/* Table Container - Using centralized styles from tables.css */
/* .table-container base styles now centralized */

/* Header alignment to match columns */
.students-table th:nth-child(3) {
    text-align: right; /* Phone column */
}

.students-table th:nth-child(5) {
    text-align: center; /* Email Consent column */
}

.students-table th:nth-child(6) {
    text-align: center; /* Concessions column */
}

.students-table th:nth-child(7) {
    text-align: right; /* Registered column */
}

.students-table tbody tr {
    cursor: pointer; /* Student-specific: rows are clickable */
}

.students-table td {
    padding: var(--space-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Column-specific alignment */
.students-table td:nth-child(1) {
    text-transform: capitalize; /* Title case for names */
}

.students-table td:nth-child(3) {
    text-align: right; /* Right-align phone numbers */
}

.students-table td:nth-child(5) {
    text-align: center; /* Center email consent badges */
}

.students-table td:nth-child(6) {
    text-align: center; /* Center concessions badges */
}

.students-table td:nth-child(7) {
    text-align: right; /* Right-align dates */
}

/* Column widths */
.students-table th:nth-child(8),
.students-table td:nth-child(8) {
    width: 240px; /* Wider Actions column for 5 buttons */
    min-width: 240px;
}

/* Email Consent Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-yes {
    background: var(--bg-success-light);
    color: var(--success);
}

.badge-no {
    background: var(--bg-error-light);
    color: var(--error);
}

.badge-warning {
    background: var(--bg-orange-light);
    color: var(--text-orange);
}

/* Deleted Student Row Styling */
.deleted-student {
    color: var(--error);
    font-style: italic;
    opacity: 0.8;
}

.deleted-student td {
    color: var(--error);
}

.deleted-student strong {
    color: var(--error);
}

.concession-badge {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.concession-badge:hover {
    transform: scale(1.1);
}

.concessions-cell {
    text-align: center;
}

/* Mini Purchase Button */
.btn-purchase-mini {
    background: transparent;
    border: 1.5px solid var(--purple-primary);
    color: var(--purple-primary);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-purchase-mini:hover {
    background: var(--purple-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--bg-purple-alt-stronger);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-xs);
}

/* Icon button styles now in /styles/base/buttons.css */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-primary);
}

.empty-state i {
    color: var(--purple-primary);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.empty-state p {
    opacity: 0.7;
    margin-bottom: var(--space-lg);
}

/* ========================================
   REGISTRATION FORM STYLES
   ======================================== */

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: var(--gradient-full);
}

.register-card {
    background: var(--card-light);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px var(--shadow-medium);
    max-width: 500px;
    width: 100%;
}

.register-card .logo {
    width: 150px;
    max-width: 150px;
    margin: 0 auto 20px;
    display: block;
}

.register-card h1 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    text-align: center;
    background: var(--gradient-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-card .subtitle {
    text-align: center;
    color: var(--text-primary);
    opacity: 0.7;
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

.registration-form {
    margin-top: var(--space-md);
}

.required {
    color: var(--error);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--text-primary);
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--purple-primary);
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label .required {
    color: var(--error);
}

.checkbox-label i {
    color: var(--purple-primary);
    margin-right: 5px;
}

/* Terms and Conditions Link */
.terms-link {
    color: var(--purple-primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.terms-link:hover {
    color: var(--pink-primary);
}

/* Textarea */
textarea {
    width: 100%;
    padding: var(--space-sm) 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all var(--transition-base);
    background: var(--input-bg);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
}

textarea::placeholder {
    color: var(--text-primary);
    opacity: 0.5;
}

textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px var(--bg-purple-medium);
}

/* Admin-only elements */
.admin-only {
    border-top: 2px dashed var(--border-light);
    padding-top: 20px;
    margin-top: var(--space-md);
}

/* Success Message */
.success-message {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-success-light);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.success-message i {
    font-size: 1.2rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
}

/* Back to Admin Link (for registration form) */
#back-to-admin {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#back-to-admin .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-md);
    padding: var(--space-xs) 14px;
    background: var(--purple-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

#back-to-admin .back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--bg-purple-medium);
}

#back-to-admin .back-link i {
    font-size: 0.8rem;
}

/* ========================================
   MODAL & BUTTON STYLES
   Inherited from admin-modals.css via admin.css
   No need to redefine here
   ======================================== */

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

/* Hide note indicator on desktop - only show on mobile */
.students-table tbody tr td:nth-child(1) .note-indicator {
    display: none;
}

@media (max-width: 768px) {
    /* Reduce padding on main content for mobile */
    .database-main {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .database-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .database-title {
        width: 100%;
        box-sizing: border-box;
    }

    /* Register button - full width on mobile */
    .database-header .btn-primary,
    .btn-primary-lg {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Search section - ensure no overflow */
    .database-search {
        width: 100%;
        box-sizing: border-box;
    }

    .search-box {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .search-input {
        width: 100%;
        box-sizing: border-box;
    }

    /* Make table scrollable on mobile */
    .table-container {
        overflow-x: visible;
        width: 100%;
        box-sizing: border-box;
        max-height: none;
    }

    /* Hide table headers on mobile */
    .students-table thead {
        display: none;
    }

    /* Convert table to card layout */
    .students-table,
    .students-table tbody {
        display: block;
        width: 100%;
    }

    .students-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--bg-purple-alt-stronger);
        border-radius: var(--radius-sm);
        background: var(--bg-white);
        box-shadow: 0 2px 8px var(--shadow-light);
        overflow: hidden;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .students-table tbody tr:hover {
        box-shadow: 0 4px 12px var(--shadow-medium);
        border-color: var(--purple-primary);
    }

    /* Accordion header - always visible */
    .students-table tbody tr td:nth-child(1),
    .students-table tbody tr td:nth-child(4) {
        display: block;
        padding: 1rem;
        border: none;
        text-align: left;
    }

    /* Name - prominent display */
    .students-table tbody tr td:nth-child(1) {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        border-bottom: 1px solid var(--bg-purple-medium);
        padding-bottom: 0.5rem;
    }

    /* Note indicator icon - only visible on mobile */
    .students-table tbody tr td:nth-child(1) .note-indicator {
        display: inline;
        font-size: 0.85rem;
        color: var(--purple-primary);
        margin-left: 0.5rem;
        opacity: 0.8;
    }

    /* Pronouns - below name */
    .students-table tbody tr td:nth-child(4) {
        font-size: 0.85rem;
        color: var(--text-light);
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    .students-table tbody tr td:nth-child(4)::before {
        content: '🏷️ ';
        opacity: 0.7;
    }

    /* Accordion content - hidden by default */
    .students-table tbody tr td:nth-child(2),
    .students-table tbody tr td:nth-child(3),
    .students-table tbody tr td:nth-child(5),
    .students-table tbody tr td:nth-child(6),
    .students-table tbody tr td:nth-child(7),
    .students-table tbody tr td:nth-child(8) {
        display: none;
        padding: 0.75rem 1rem;
        border: none;
        text-align: left;
        border-top: 1px solid var(--bg-purple-medium);
    }

    /* When row is expanded, show all content */
    .students-table tbody tr.expanded td:nth-child(2),
    .students-table tbody tr.expanded td:nth-child(3),
    .students-table tbody tr.expanded td:nth-child(5),
    .students-table tbody tr.expanded td:nth-child(6),
    .students-table tbody tr.expanded td:nth-child(7),
    .students-table tbody tr.expanded td:nth-child(8) {
        display: block;
    }

    /* Add labels for expanded content */
    .students-table tbody tr.expanded td:nth-child(7)::before {
        content: '📅 Registered: ';
        font-weight: 600;
        color: var(--text-primary);
        opacity: 0.8;
    }

    .students-table tbody tr.expanded td:nth-child(2)::before {
        content: '📧 ';
        opacity: 0.7;
    }

    .students-table tbody tr.expanded td:nth-child(3)::before {
        content: '📱 ';
        opacity: 0.7;
    }

    .students-table tbody tr.expanded td:nth-child(5)::before {
        content: 'Email Consent: ';
        font-weight: 600;
        opacity: 0.8;
    }

    .students-table tbody tr.expanded td:nth-child(6)::before {
        content: 'Concessions: ';
        font-weight: 600;
        opacity: 0.8;
        display: block;
        margin-bottom: 0.25rem;
    }

    /* Action buttons - full width when expanded */
    .students-table tbody tr.expanded td:nth-child(8) {
        padding: 1rem;
        background: var(--bg-purple-alt-medium);
    }

    .students-table tbody tr.expanded td:nth-child(8).action-buttons {
        display: flex;
        gap: 0.5rem;
        justify-content: stretch;
        width: 100%;
        flex-direction: row !important;
        box-sizing: border-box;
    }

    .students-table tbody tr.expanded td:nth-child(8) .btn-icon {
        flex: 1;
        padding: 0.5rem;
        display: inline-flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        font-size: 0.8rem;
        min-width: 0;
        box-sizing: border-box;
    }

    .students-table tbody tr.expanded td:nth-child(8) .btn-icon i {
        font-size: 1.2rem;
    }

    /* Add expand indicator */
    .students-table tbody tr td:nth-child(1)::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        float: right;
        opacity: 0.5;
        transition: transform 0.3s ease;
    }

    .students-table tbody tr.expanded td:nth-child(1)::after {
        transform: rotate(180deg);
    }

    .register-card {
        padding: var(--space-xl) 20px;
    }

    .register-card h1 {
        font-size: 1.6rem;
    }

    .database-title h2 {
        font-size: 1.4rem;
    }

    .page-heading {
        font-size: 1.3rem;
    }

    .admin-header .logo-small {
        height: 45px;
    }
    
    .back-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .admin-user-info span {
        display: none; /* Hide email on mobile to save space */
    }
}

@media (max-width: 480px) {
    .students-table th,
    .students-table td {
        padding: var(--space-sm) 8px;
        font-size: 0.85rem;
    }

    .register-card .logo {
        width: 150px;
    }

    .search-input {
        font-size: 0.9rem;
        padding: var(--space-sm) 40px 12px 42px;
    }

    .search-icon {
        left: 12px;
        font-size: 0.9rem;
    }

    .search-input::placeholder {
        font-size: 0.85rem;
        color: var(--text-muted);
        opacity: 0.8;
    }

    .action-buttons {
        gap: 6px;
    }

    .btn-icon {
        padding: 6px 10px;
    }

    .btn-icon i {
        font-size: 0.85rem;
    }
}

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

.pagination-wrapper {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Pagination styles now in /styles/base/buttons.css */

.pagination-info-wrapper {
    margin-top: var(--space-sm);
    text-align: center;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        margin-top: var(--space-md);
        flex-direction: column;
        gap: 0.75rem;
    }

    .pagination {
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        padding: 0.25rem 0;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: auto;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .pagination-btn i {
        display: inline;
    }

    .pagination-btn span {
        display: none;
    }
    
    .pagination-pages {
        gap: 4px;
    }

    .pagination-number {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 32px;
        flex-shrink: 0;
    }

    .pagination-info-wrapper {
        margin-top: 0;
        order: 2;
    }

    .pagination-info {
        font-size: 0.85rem;
    }
}

/* ========================================
   NOTES MODAL (SIMPLIFIED)
   ======================================== */

.student-info {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--purple-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.student-info h3 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
}

.student-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-primary);
    font-family: inherit;
}

#notes-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 150px;
}

#notes-content::placeholder {
    font-family: inherit;
}

/* ========================================
   DELETE CONFIRMATION - STUDENT SPECIFIC
   ======================================== */

.student-info-delete {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--purple-primary);
    font-family: inherit;
}

.student-info-delete p {
    margin: var(--space-xs) 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
}

.student-info-delete strong {
    display: inline-block;
    min-width: 70px;
    color: var(--text-primary);
    opacity: 0.7;
    font-family: inherit;
}

/* Activity List in Delete Modal */
.activity-list {
    margin: var(--space-sm) 0;
}

.activity-list h4 {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-size: 1rem;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: var(--space-xs);
}

.activity-table thead {
    background: var(--purple-primary);
    color: white;
}

.activity-table th,
.activity-table td {
    padding: var(--space-xs) 10px;
    text-align: left;
    border-bottom: 1px solid var(--shadow-light);
}

.activity-table tbody tr:hover {
    background: var(--bg-purple-alt-medium);
}

.warning-text {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: var(--bg-orange-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--text-orange);
}

/* ========================================
   MODAL ACTION BUTTONS
   ======================================== */

.modal-actions-left {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.modal-actions-right {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.modal-actions-left .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--purple-primary);
    background: transparent;
    color: var(--purple-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-actions-left .btn-icon:hover {
    background: var(--purple-primary);
    color: white;
    transform: translateY(-2px);
}

.modal-actions-left .btn-icon i {
    font-size: 1rem;
}

/* ========================================
   CONCESSIONS DETAIL MODAL
   ======================================== */

.concessions-section {
    margin-bottom: var(--space-lg);
}

.concessions-section:last-child {
    margin-bottom: 0;
}

.concessions-section h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Accordion styles for concession sections */
.concession-accordion-header {
    cursor: pointer;
    user-select: none;
    padding: var(--space-sm);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin: 0 0 0 0;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.concession-accordion-header:hover {
    background: var(--bg-purple-alt-medium);
    border-color: var(--purple-primary);
}

/* Colored borders for different accordion states */
.concession-accordion-header[data-target*="active"] {
    border-left-color: var(--success);
}

.concession-accordion-header[data-target*="expired"] {
    border-left-color: var(--error);
}

.concession-accordion-header[data-target*="depleted"] {
    border-left-color: var(--warning);
}

.concession-accordion-header .accordion-icon {
    transition: transform 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.concession-accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.accordion-content.show {
    max-height: 2000px;
    margin-top: var(--space-sm);
}

.concessions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.concession-item {
    padding: var(--space-sm);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--success);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.concession-item:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 2px 8px var(--bg-purple-medium);
}

.concession-item.expired {
    background: var(--bg-error-light);
    border-left: 4px solid var(--error);
}

.concession-item.depleted {
    background: var(--bg-yellow-light);
    border-left: 4px solid var(--warning);
}

.concession-item.locked {
    background: var(--shadow-light);
}

/* Keep colored borders for locked items based on their state */
.concession-item.expired.locked {
    border-left: 4px solid var(--error);
}

.concession-item.depleted.locked {
    border-left: 4px solid var(--warning);
}

.concession-item.locked:not(.expired):not(.depleted) {
    border-left: 4px solid var(--text-muted-alt);
}

.concession-info {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.concession-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.concession-info .text-muted {
    font-size: 0.85rem;
}

.concession-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.concession-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.concession-details i {
    width: 14px;
    text-align: center;
    font-size: 0.8rem;
}

.concession-actions {
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-end;
}

.btn-lock-toggle {
    padding: 4px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
    background: transparent;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.btn-lock-toggle:hover {
    background: var(--purple-primary);
    color: white;
    border-color: var(--purple-primary);
}

.btn-lock-toggle i {
    margin-right: 4px;
}

.btn-delete-block {
    padding: 4px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--error);
    background: transparent;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--error);
}

.btn-delete-block:hover:not(:disabled) {
    background: var(--error);
    color: white;
}

.btn-delete-block:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border-light);
    color: var(--text-muted);
}

.btn-delete-block i {
    margin-right: 4px;
}

.badge-locked {
    background: var(--bg-gray-light);
    color: var(--text-muted-alt);
}

.bulk-actions {
    margin-bottom: var(--space-md);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.btn-lock-all-expired {
    width: 100%;
}

/* ========================================
   SNACKBAR NOTIFICATIONS
   ======================================== */

.snackbar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: 0 4px 12px var(--shadow-text);
    z-index: var(--z-notification);
    transition: bottom 0.3s ease;
    min-width: 300px;
    max-width: 500px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.95rem;
}

.snackbar.show {
    bottom: 30px;
}

.snackbar i {
    font-size: 1.2rem;
}

.snackbar-success {
    background: var(--status-active-gradient);
}

.snackbar-error {
    background: var(--status-inactive-gradient);
}

.snackbar-warning {
    background: var(--status-warning-gradient);
}

.snackbar-info {
    background: var(--status-info-gradient);
}

/* ========================================
   TERMS AND CONDITIONS MODAL
   ======================================== */

/* Modal Content Sizing for Terms */
#terms-modal .modal-content {
    max-width: 700px;
    max-height: 90vh;
}

/* Purple Header */
#terms-modal .modal-header h3 {
    color: var(--purple-primary);
}

.terms-content {
    max-height: 500px;
    overflow-y: auto;
}

.terms-content h4 {
    color: var(--purple-primary);
    margin-top: var(--space-lg);
    font-weight: normal;
}

.terms-content h5 {
    color: var(--text-primary);
    margin-top: var(--space-md);
    font-weight: normal;
}

.terms-content p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    color: var(--text-primary);
}

.terms-placeholder {
    font-style: italic;
    color: var(--text-muted);
    margin-top: var(--space-xl);
    padding: var(--space-sm);
    background: var(--bg-purple-alt-medium);
    border-left: 3px solid var(--purple-primary);
    border-radius: var(--radius-xs);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all var(--transition-fast);
    margin-left: auto;
}

.modal-close:hover {
    color: var(--purple-primary);
    transform: scale(1.1);
}

/* ========================================
   LOADING SPINNER
   Inherited from admin.css - no need to redefine
   ======================================== */

