/* Modern List Styling for LawtonIT System */

/* Gradient Header Styles */
.modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modern-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white !important;
}

.modern-header .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}
.card-header, .bg-primary, .btn-primary {
    background: #667eea !important;
}
.btn-success, .bg-success {
    background: #8a2626 !important;
    color: white !important;
    border: none;
}
.btn-danger {
    background:white;
    color: red !important;
    font-weight:bold;
    border: 1px solid red !important;
}
.btn-danger:hover {
    background: lightcoral;
    color: white !important;
    font-weight:bold;
}
.modern-header .btn-success .bg-primary {
    background: white;
    color: #667eea;
    border: none;
}

.modern-header .btn-success:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Filter Form Styles */
.modern-filter-form {
    background: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.modern-filter-form .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
}

.modern-filter-form .btn {
    border-radius: 6px;
    font-weight: 500;
}

/* List Container */
.modern-list-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header Row */
.modern-header-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    margin: 0;
    border-bottom: 2px solid #5568d3;
}

.modern-header-row a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.modern-header-row a:hover {
    text-decoration: underline;
}

/* Category Headers */
.modern-category-header {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #e9ecef;
}

.modern-category-header i {
    margin-right: 8px;
}

/* Data Rows */
.modern-row {
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s;
}

.modern-row:hover {
    background: #e3f2fd !important;
    transform: translateX(3px);
}

.modern-row a {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
}

.modern-row a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.modern-row .badge {
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Buttons */
.modern-btn {
    border-radius: 6px !important;
    font-weight: 500;
    transition: all 0.2s;
    padding: 6px 12px;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.modern-btn i {
    margin-right: 5px;
}

.btn-group .modern-btn {
    margin-right: 5px;
}

/* Pagination */
.modern-pagination {
    margin: 20px 0;
}

.modern-pagination .page-link {
    border-radius: 6px;
    margin: 0 3px;
    color: #667eea;
    border: 1px solid #ddd;
}

.modern-pagination .page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.modern-pagination .page-item.active .page-link {
    background: #667eea;
    border-color: #667eea;
}

.modern-pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #ddd;
}

/* Labels and Badges */
.modern-label {
    color: #666;
    font-size: 0.9em;
}

.modern-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Alert/Deleted Items */
.modern-row.deleted {
    background: #fff3cd !important;
    opacity: 0.7;
}

.modern-row.alert {
    background: #f8d7da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-header h2 {
        font-size: 22px;
    }
    
    .modern-row {
        padding: 10px;
    }
}
