

.page-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem 0;
    margin: -1rem -15px 2rem -15px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.page-header h2 {
    margin: 0;
    font-weight: 600;
    text-align: center;
}

.page-header i {
    margin-right: 10px;
    font-size: 1.2em;
}

.search-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.search-form .input-group-text {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
}

.search-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-form .btn-primary {
    background: #007bff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-form .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.table-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.table {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #495057, #343a40);
    color: white;
    border: none;
    padding: 1rem 0.75rem;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #f1f3f4;
    text-align: center;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.action-buttons .btn-warning {
    background: #ffc107;
    color: #212529;
}

.action-buttons .btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.4);
}

.action-buttons .btn-danger {
    background: #dc3545;
    color: white;
}

.action-buttons .btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
}

.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert i {
    margin-right: 8px;
    font-size: 1.1em;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.text-muted {
    padding: 3rem;
    font-style: italic;
}

.text-muted i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        margin: -1rem -15px 1rem -15px;
        padding: 1.5rem 0;
    }
    
    .search-container {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .table-container {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 3px;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .table tbody td {
        max-width: 100px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .search-form .col-md-5,
    .search-form .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.25rem;
    }
}

/* Loading Animation */
.table-loading {
    text-align: center;
    padding: 2rem;
}

.table-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}