/* Legacy styles - old file in root folder (bad practice but common) */
/* Contains outdated styles and !important overrides */

body {
    /* Override with !important - typical legacy issue */
    background-color: #f8f9fa !important;
}

/* Old table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th {
    background-color: #3b82f6;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #475569;
}

table tr:hover {
    background-color: #f8fafc;
}

/* Old modal styles - hardcoded everything */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-body {
    padding: 20px 0;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}

.modal-footer {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Old breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb-item {
    color: #64748b;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #cbd5e1;
}

/* Old badge styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    line-height: 1;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Old tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #1e293b;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* Old pagination */
.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
    justify-content: center;
    padding: 20px 0;
}

.pagination li a {
    display: block;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.pagination li a:hover {
    background-color: #f1f5f9;
}

.pagination li.active a {
    background-color: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

/* Old progress bar */
.progress {
    width: 100%;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.progress-bar.success {
    background-color: #10b981;
}

.progress-bar.warning {
    background-color: #f59e0b;
}

.progress-bar.danger {
    background-color: #ef4444;
}
