/* Job Types Management Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #89CFF0 0%, #B0E0E6 100%);
    color: #2C3E50;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(137, 207, 240, 0.3);
}

.page-header .page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.page-header .breadcrumb-item a {
    color: rgba(44, 62, 80, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: #2C3E50;
}

.page-header .breadcrumb-item.active {
    color: rgba(44, 62, 80, 0.9);
}

/* Search and Filter Section */
.search-filter-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.search-filter-card .card-body {
    padding: 1.5rem;
}

.search-filter-card .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.search-filter-card .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-filter-card .form-control:focus {
    border-color: #89CFF0;
    box-shadow: 0 0 0 0.2rem rgba(137, 207, 240, 0.25);
}

/* Data Table Section */
.data-table-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.data-table-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.data-table-card .card-title {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

/* Table Styles */
.table {
    margin: 0;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 1rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
    vertical-align: middle;
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.sortable:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.sortable i {
    margin-left: 0.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.sortable.sorting-active {
    background-color: rgba(137, 207, 240, 0.2);
    color: #4682B4;
}

.sortable.sorting-active i {
    color: #4682B4;
}

.sortable:hover i {
    color: #495057;
}

/* Law Type Badge */
.badge.bg-primary {
    background: linear-gradient(135deg, #89CFF0 0%, #B0E0E6 100%) !important;
    color: #2C3E50 !important;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(137, 207, 240, 0.3);
    transition: all 0.3s ease;
}

.badge.bg-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f1f3f4;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Action Buttons */
.btn-group .btn {
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

/* Pagination */
.pagination {
    margin: 0;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 2px solid #e9ecef;
    color: #495057;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #89CFF0;
    border-color: #89CFF0;
    color: #2C3E50;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #89CFF0 0%, #B0E0E6 100%);
    border-color: #89CFF0;
    color: #2C3E50;
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.form-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.form-card .card-title {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.form-card .card-body {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #89CFF0;
    box-shadow: 0 0 0 0.2rem rgba(137, 207, 240, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #dee2e6;
}

/* Loading States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header .page-title {
        font-size: 1.5rem;
    }
    
    .search-filter-card .card-body {
        padding: 1rem;
    }
    
    .form-card .card-body {
        padding: 1.5rem;
    }
    
    .table-responsive {
        border-radius: 15px;
    }
    
    .btn-group .btn {
        margin: 2px;
        padding: 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .page-header {
        background: linear-gradient(135deg, #4682B4 0%, #5F9EA0 100%);
        color: #F0F8FF;
    }
    
    .search-filter-card,
    .data-table-card,
    .form-card {
        background: #F0F8FF;
        color: #2C3E50;
    }
    
    .table thead th {
        background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
        color: #2C3E50;
    }
    
    .table tbody tr:hover {
        background-color: #E6F3FF;
    }
    
    .form-control {
        background-color: #F0F8FF;
        border-color: #89CFF0;
        color: #2C3E50;
    }
    
    .form-control:focus {
        background-color: #F0F8FF;
        border-color: #89CFF0;
    }
}

/* Print Styles */
@media print {
    .btn,
    .search-filter-card,
    .pagination {
        display: none !important;
    }
    
    .page-header {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .table {
        border: 1px solid #000;
    }
    
    .table th,
    .table td {
        border: 1px solid #000;
    }
}
