:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.editable-cell {
    width: 120px;
    text-align: right;
}

.editable-cell:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    cursor: pointer;
}

.btn {
    border-radius: 5px;
    font-weight: 500;
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

footer {
    margin-top: auto;
}

/* Loading animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success animation */
@keyframes successPulse {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(25, 135, 84, 0.2);
    }
}

.success-pulse {
    animation: successPulse 1s ease;
}

/* Chart container */
canvas {
    max-height: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, footer, .btn, .card-header .btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
