body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1280px;
    margin: auto;
    padding: 20px;
}
h1, h2 {
    text-align: center;
    color: #333;
}
input[type="file"] {
    display: block;
    margin: 20px auto;
}
button {
    display: block;
    margin: auto;
    padding: 10px 20px;
    font-size: 16px;
}
.result {
    margin-top: 30px;
    background: #eef;
    padding: 15px;
    border-radius: 5px;
}
pre {
    background: #ddd;
    padding: 10px;
    border-radius: 5px;
}

.card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.table-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 1rem;
    border-top: none;
    white-space: nowrap;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.table td {
    vertical-align: middle !important;
}

.table th {
    white-space: nowrap;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.d-flex.gap-2 {
    display: flex !important;
    gap: 0.5rem !important;
    margin: 0;
    align-items: center;
}

.d-flex.gap-2 .btn {
    margin: 0;
    padding: 0.4375rem;
    font-size: 0.875rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.d-flex.gap-2 .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.d-flex.gap-2 .btn svg {
    margin: 0;
    flex-shrink: 0;
}

.actions-col {
    width: 1%;
    white-space: nowrap;
}

/* Flash message styles */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading spinner */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-text {
    margin-top: 1rem;
    color: #2c3e50;
    font-weight: 500;
}
