/* Enterprise Blue Theme - GST Billing System */

/* ==========================================================================
   FONT IMPORTS & BASE STYLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   COLOR VARIABLES
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary-blue: rgb(37 99 235);
    --primary-blue-hover: rgb(29 78 216);
    --primary-blue-light: rgb(59 130 246);
    
    /* Background Colors */
    --bg-primary: rgb(249 250 251);
    --bg-secondary: rgb(255 255 255);
    --bg-tertiary: rgb(243 244 246);
    
    /* Text Colors */
    --text-primary: rgb(17 24 39);
    --text-secondary: rgb(55 65 81);
    --text-tertiary: rgb(107 114 128);
    --text-muted: rgb(156 163 175);
    
    /* Border Colors */
    --border-primary: rgb(229 231 235);
    --border-secondary: rgb(209 213 219);
    --border-focus: rgb(37 99 235);
    
    /* Status Colors */
    --success: rgb(34 197 94);
    --success-light: rgb(240 253 244);
    --warning: rgb(251 146 60);
    --warning-light: rgb(255 247 237);
    --error: rgb(239 68 68);
    --error-light: rgb(254 242 242);
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-tertiary);
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-ghost:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border-primary);
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background-color: var(--border-secondary);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */
.input-field {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    width: 100%;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Checkbox and Radio */
.checkbox-field {
    accent-color: var(--primary-blue);
}

.radio-field {
    accent-color: var(--primary-blue);
}

/* ==========================================================================
   BADGE STYLES
   ========================================================================== */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.badge-default {
    background-color: var(--success);
    color: white;
}

.badge-secondary {
    background-color: var(--warning);
    color: white;
}

.badge-destructive {
    background-color: var(--error);
    color: white;
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

/* ==========================================================================
   CARD STYLES
   ========================================================================== */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-primary);
    background-color: var(--bg-primary);
}

/* ==========================================================================
   DROPDOWN STYLES
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-secondary);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-primary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-primary);
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 1rem;
    text-align: center;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-primary);
    background-color: var(--bg-primary);
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-header p:first-child {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dropdown-header p:last-child {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   ALERT STYLES
   ========================================================================== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--success-light);
    border-color: var(--success);
    color: rgb(22 101 52);
}

.alert-warning {
    background-color: var(--warning-light);
    border-color: var(--warning);
    color: rgb(146 64 14);
}

.alert-error {
    background-color: var(--error-light);
    border-color: var(--error);
    color: rgb(153 27 27);
}

.alert-info {
    background-color: rgb(239 246 255);
    border-color: var(--primary-blue);
    color: rgb(30 58 138);
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: rgb(239 246 255);
    color: var(--primary-blue);
    border: 1px solid rgb(219 234 254);
}

.nav-item i {
    width: 1.25rem;
    margin-right: 0.75rem;
}

/* ==========================================================================
   TABLE STYLES
   ========================================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: var(--bg-primary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.table tbody tr:hover {
    background-color: var(--bg-primary);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

.border-primary { border-color: var(--border-primary); }
.border-secondary { border-color: var(--border-secondary); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 768px) {
    .btn-primary,
    .btn-outline,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .input-field {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
} 