/* Standard Tables CSS - Based on Index Page Template */
/* This file provides consistent table styling across all pages */

/* ===========================================
   TABLE CONTROLS STYLING
   =========================================== */

.table-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.search-container {
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #1e3c72;
    font-size: 20px;
    transition: color 0.3s ease;
}

.search-input:focus + .search-box i,
.search-box:hover i {
    color: #2196F3;
}

.search-input {
    padding: 10px 15px 10px 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.15);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2), 0 4px 12px rgba(30, 60, 114, 0.2);
    background: #ffffff;
}

.search-input::placeholder {
    color: #666666;
    font-weight: 400;
}

.filter-container {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.15);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

/* ===========================================
   TABLE HEADER WITH SEARCH STYLING
   =========================================== */

.table-header-with-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px 15px 5px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid rgba(30, 60, 114, 0.1);
}

.table-controls-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* ===========================================
   MODERN CONTAINER STYLING
   =========================================== */

/* Reset section.content margins when it contains modern-container */
section.content.modern-content {
    margin: 0 !important;
}

.modern-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 85px 15px 15px 315px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ===========================================
   STATS GRID STYLING
   =========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    margin-top: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 6px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    margin-right: 8px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 2px;
    line-height: 1.2;
}

.stat-label {
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

/* ===========================================
   TABLE CONTAINER STYLING
   =========================================== */

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-table-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   TABLE STYLING
   =========================================== */

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-table {
    background: #f5f5f5;
    border-radius: 8px;
    width: 100%;
    border-collapse: collapse;
}

/* ===========================================
   TABLE HEADER STYLING
   =========================================== */

.table thead,
.dashboard-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.table th,
.dashboard-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border: none;
}

/* ===========================================
   TABLE BODY STYLING
   =========================================== */

.table td,
.dashboard-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    vertical-align: middle;
}

/* Compact table rows for dashboard tables */
.table-responsive.dashboard-table-container .table td {
    padding: 6px 12px;
}

/* ===========================================
   TABLE ROW STYLING
   =========================================== */

.table tbody tr:nth-child(even),
.dashboard-table tbody tr:nth-child(even) {
    background: rgba(240, 242, 245, 0.9);
}

.table tbody tr:nth-child(odd),
.dashboard-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 1);
}

.table tbody tr:hover,
.dashboard-table tbody tr:hover {
    background: rgba(30, 60, 114, 0.1) !important;
}

/* ===========================================
   TABLE CAPTION STYLING
   =========================================== */

.table-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ===========================================
   STATUS BADGES STYLING
   =========================================== */

/* Active/Normal Status */
.status-active,
.status-normal {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Inactive/Error Status */
.status-inactive,
.status-error {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    background: #ffebee;
    color: #c62828;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Used Status – same badge format as Active, blue */
.status-used {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    background: #1976d2;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Terminated (cancelled) Status – same badge format as Active, red */
.status-terminated {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    background: #c62828;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Expired (active but end date passed) Status – same badge format as Active, gray */
.status-expired {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    background: #546e7a;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Warning Status */
.status-warning {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* ===========================================
   ACTION BUTTONS STYLING
   =========================================== */

/* Primary Action Button (View/Info) */
.btn-primary-action {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    background: #2196F3;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 3px;
    transition: all 0.3s ease;
}

.btn-primary-action:hover {
    background: #1976D2;
    color: white;
    text-decoration: none;
}

/* Secondary Action Button (Edit/Update) */
.btn-secondary-action {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    background: #FF9800;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 3px;
    transition: all 0.3s ease;
}

.btn-secondary-action:hover {
    background: #F57C00;
    color: white;
    text-decoration: none;
}

/* Success Action Button (Unlock/Enable) */
.btn-success-action {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 3px;
    transition: all 0.3s ease;
}

.btn-success-action:hover {
    background: #388E3C;
    color: white;
    text-decoration: none;
}

/* Danger Action Button (Delete/Disable) */
.btn-danger-action {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    background: #F44336;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 3px;
    transition: all 0.3s ease;
}

.btn-danger-action:hover {
    background: #D32F2F;
    color: white;
    text-decoration: none;
}

/* Special Action Button (Release/Reset) */
.btn-special-action {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    background: #9C27B0;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 3px;
    transition: all 0.3s ease;
}

.btn-special-action:hover {
    background: #7B1FA2;
    color: white;
    text-decoration: none;
}

/* Disabled Action Button */
.btn-disabled-action {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 3px;
}

/* Action Button Icons */
.btn-primary-action i,
.btn-secondary-action i,
.btn-success-action i,
.btn-danger-action i,
.btn-special-action i,
.btn-disabled-action i {
    font-size: 14px;
    margin-right: 2px;
}

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

/* Tablet and smaller screens */
@media (max-width: 768px) {
    .modern-container {
        margin: 85px 15px 15px 15px;
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px;
        margin-top: 10px;
    }
    
    .stat-card {
        padding: 8px;
    }
    
    .stat-number {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .table-header-with-search {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .table-controls-inline {
        justify-content: center;
        width: 100%;
    }
    
    .table-controls {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .dashboard-table-container {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .table th,
    .table td,
    .dashboard-table th,
    .dashboard-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .table-caption {
        font-size: 18px;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    .modern-container {
        margin: 85px 15px 15px 15px;
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px;
        margin-top: 8px;
    }
    
    .stat-card {
        padding: 6px;
    }
    
    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 12px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .table-header-with-search {
        gap: 8px;
    }
    
    .table-controls-inline {
        flex-direction: column;
        gap: 8px;
    }
    
    .table-controls {
        padding: 8px;
        gap: 8px;
    }
    
    .search-input {
        font-size: 12px;
        padding: 8px 12px 8px 35px;
        width: 100%;
    }
    
    .search-box i {
        font-size: 18px;
        left: 10px;
    }
    
    .filter-select {
        font-size: 12px;
        padding: 8px 12px;
        width: 100%;
    }
    
    .dashboard-table-container {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .table th,
    .table td,
    .dashboard-table th,
    .dashboard-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .table-caption {
        font-size: 16px;
    }
    
    .btn-primary-action,
    .btn-secondary-action,
    .btn-success-action,
    .btn-danger-action,
    .btn-special-action,
    .btn-disabled-action {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .modern-container {
        margin: 85px 15px 15px 15px;
        padding: 8px;
    }
    
    .stat-card {
        padding: 4px;
    }
    
    .stat-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .stat-number {
        font-size: 11px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .table th,
    .table td,
    .dashboard-table th,
    .dashboard-table td {
        padding: 3px 1px;
        font-size: 9px;
    }
    
    .table-caption {
        font-size: 14px;
    }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Colors */
.text-primary { color: #1e3c72; }
.text-secondary { color: #666; }
.text-success { color: #4CAF50; }
.text-warning { color: #FF9800; }
.text-danger { color: #F44336; }
.text-muted { color: #999; }

/* Backgrounds */
.bg-primary { background-color: #1e3c72; }
.bg-secondary { background-color: #666; }
.bg-success { background-color: #4CAF50; }
.bg-warning { background-color: #FF9800; }
.bg-danger { background-color: #F44336; }
.bg-light { background-color: #f8f9fa; }

/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* ===========================================
   TABLE VARIANTS
   =========================================== */

/* Compact table variant */
.table-compact th,
.table-compact td {
    padding: 6px 8px;
    font-size: 12px;
}

/* Large table variant */
.table-large th,
.table-large td {
    padding: 20px 16px;
    font-size: 16px;
}

/* Bordered table variant */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* Striped table variant */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hover table variant */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* ===========================================
   TABLE PAGINATION STYLING
   =========================================== */

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
}

.pagination-info {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #1976D2;
}

.pagination-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.pagination-page.current {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    font-weight: 600;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

/* ===========================================
   ACTION BUTTONS STYLING
   =========================================== */

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 0 2px;
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* View button */
.view-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.view-btn:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

/* Edit button */
.edit-btn {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.edit-btn:hover {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

/* Delete button */
.delete-btn {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.delete-btn:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Action buttons container */
td:last-child {
    white-space: nowrap;
    text-align: center;
}

/* ===========================================
   ADD USER BUTTON STYLING
   =========================================== */

.add-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.add-user-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-user-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    color: white;
    text-decoration: none;
}

.add-user-btn:hover::before {
    left: 100%;
}

.add-user-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.add-user-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Responsive table pagination */
@media (max-width: 768px) {
    .table-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .pagination-page {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 13px;
        text-align: center;
    }
}

/* Modal header styling to match index page door action modals */
.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border: none;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Modal button hover effects */
.modal-footer .btn {
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 20px;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.modal-footer .btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.modal-footer .btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.modal-footer .btn-primary {
    background: #007bff;
    color: white;
    border: none;
}

.modal-footer .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Modern Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
}

.toast-notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 20px;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 2px;
}

.toast-text {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.toast-close:hover {
    background: #f5f5f5;
    color: #666;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
    animation: toastProgress 4s linear forwards;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, #F44336, #D32F2F);
}

.toast-info .toast-progress {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast-notification {
        margin: 0;
    }
    
    .toast-content {
        padding: 14px;
    }
    
    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .toast-title {
        font-size: 13px;
    }
    
    .toast-text {
        font-size: 12px;
    }
}
