/* Common Styles */
:root {
    --primary-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --heading-size: 1.5rem;
    --subheading-size: 1.25rem;
    --body-size: 0.95rem;
    --small-size: 0.85rem;
}

body {
    font-family: var(--primary-font);
    font-size: var(--body-size);
    padding-top: 1rem;
}

h1 {
    font-size: var(--heading-size);
    font-weight: 600;
}

h2, h3, h4, h5 {
    font-size: var(--subheading-size);
    font-weight: 600;
}

.table th {
    font-size: var(--body-size);
    font-weight: 600;
}

.table td {
    font-size: var(--body-size);
    padding: 15px;
    vertical-align: middle;
}

.badge {
    font-size: var(--small-size);
    padding: 8px 12px;
}

.badge small {
    font-size: calc(var(--small-size) * 0.9);
    opacity: 0.9;
}

.stats-card {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.2s;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card h3 {
    font-size: var(--body-size);
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-card h3 i {
    font-size: calc(var(--body-size) * 1.2);
}

.stats-card .value {
    font-size: calc(var(--heading-size) * 1.3);
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.stats-card .value small {
    font-size: var(--heading-size);
    opacity: 0.9;
    vertical-align: baseline;
}

/* Invoice/Report Styles */
.invoice-container {
    width: 800px;
    padding: 40px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.invoice-container h1 {
    font-size: calc(var(--heading-size) * 1.2);
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.invoice-header {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.invoice-header th,
.invoice-header td,
.invoice-details th,
.invoice-details td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: var(--body-size);
}

.invoice-header th,
.invoice-details th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 200px;
}

.invoice-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Search Bar Styles */
.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: var(--body-size);
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: border-color 0.15s ease-in-out;
}

.search-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Color Classes */
.bg-orange {
    background: linear-gradient(45deg, #ff6b35, #ff9255) !important;
}

.bg-indigo {
    background: linear-gradient(45deg, #6610f2, #520dc2) !important;
}

/* Common Card Styling */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
    padding: 1rem;
}

/* Stats Cards */
.stats-card {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-card h3 i {
    font-size: 1.2rem;
}

.stats-card .value {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
}

.stats-card .value small {
    font-size: 1.2rem;
    opacity: 0.9;
    vertical-align: baseline;
}

/* Month Navigation */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.month-navigation h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    text-align: center;
    flex: 1;
}

.month-navigation .btn {
    background-color: white;
    color: #0d6efd;
    border: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

/* Table Styling */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 500;
    padding: 1rem;
    text-align: center;
}

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

/* Badge Styling */
.badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    font-weight: normal;
}

.badge.rounded-pill {
    padding-left: 15px;
    padding-right: 15px;
}

/* Search Bar */
.search-bar {
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.search-bar .form-control {
    border-radius: 20px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.modal-header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    background: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

/* Button Styling */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0b5ed7, #094bac);
}

.btn-light {
    background: white;
    border: 1px solid #dee2e6;
}

/* Custom Colors */
.bg-indigo {
    background: linear-gradient(45deg, #6610f2, #520dc2) !important;
}

.bg-primary {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7) !important;
}

.bg-success {
    background: linear-gradient(45deg, #198754, #157347) !important;
}

.bg-orange {
    background: linear-gradient(45deg, #ff6b35, #ff9255) !important;
}

.bg-warning {
    background: linear-gradient(45deg, #ffc107, #ffcd39) !important;
}

.bg-info {
    background: linear-gradient(45deg, #0dcaf0, #0aa2c0) !important;
}

/* Inventory Cards */
.inventory-card {
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.inventory-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.inventory-card .display-4 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.inventory-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Edit Buttons */
.edit-quantity, .edit-booking, .edit-expense {
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: 5px;
}

.edit-quantity i, .edit-booking i, .edit-expense i {
    font-size: 0.875rem;
}

/* Status Indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-card .value {
        font-size: 1.5rem;
    }
    
    .month-navigation {
        flex-direction: row;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .month-navigation h2 {
        font-size: 1.2rem;
    }
    
    .month-navigation .btn {
        min-width: 80px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        border: none;
    }

}

@media (max-width: 480px) {
    .month-navigation {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .month-navigation .btn {
        width: 100%;
    }
}

/* Fixed Tab Navigation */
.nav-tabs {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding: 1rem 1rem 0;
    margin: -1rem -1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: white;
    border-color: #dee2e6 #dee2e6 white;
    font-weight: 600;
}

/* Add padding to body to prevent content jump */
.container {
    padding-top: 0.5rem;
} 