/* ============================================
   GLOBAL COLOR SCHEME & VARIABLES
   ============================================ */
:root {
    /* Primary Gradient Colors */
    --primary-start: #667eea;
    --primary-end: #764ba2;
    
    /* Secondary Gradient Colors */
    --secondary-start: #f093fb;
    --secondary-end: #f5576c;
    
    /* Accent Gradient Colors */
    --accent-start: #4facfe;
    --accent-end: #00f2fe;
    
    /* Success/Info/Warning/Error Colors */
    --success-start: #11998e;
    --success-end: #38ef7d;
    
    --info-start: #667eea;
    --info-end: #764ba2;
    
    --warning-start: #f7b733;
    --warning-end: #fc4a1a;
    
    --error-start: #eb3349;
    --error-end: #f45c43;
    
    /* Neutral Colors */
    --dark-bg: #1a1f36;
    --dark-card: #232946;
    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 9999;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-start);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-end);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-success { color: var(--success-start); }
.text-info { color: var(--info-start); }
.text-warning { color: var(--warning-start); }
.text-error { color: var(--error-start); }
.text-muted { color: var(--text-secondary); }

/* ============================================
   GLOBAL GRADIENT CLASSES
   ============================================ */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end)) !important;
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-start), var(--secondary-end)) !important;
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end)) !important;
}

.gradient-success {
    background: linear-gradient(135deg, var(--success-start), var(--success-end)) !important;
}

.gradient-info {
    background: linear-gradient(135deg, var(--info-start), var(--info-end)) !important;
}

.gradient-warning {
    background: linear-gradient(135deg, var(--warning-start), var(--warning-end)) !important;
}

.gradient-error {
    background: linear-gradient(135deg, var(--error-start), var(--error-end)) !important;
}

.gradient-animated {
    background: linear-gradient(-45deg, var(--primary-start), var(--primary-end), var(--accent-start), var(--accent-end));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    line-height: 1.5;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-start), var(--success-end));
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-start), var(--error-end));
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

/* Action Buttons */
.btn-action {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-action.gradient-info {
    background: linear-gradient(135deg, var(--info-start), var(--info-end));
    color: white;
}

.btn-action.gradient-error {
    background: linear-gradient(135deg, var(--error-start), var(--error-end));
    color: white;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-label.required::after {
    content: " *";
    color: var(--error-start);
}

.input-field,
textarea.input-field,
select.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.input-field:focus,
textarea.input-field:focus,
select.input-field:focus {
    border-color: var(--primary-start);
    background: rgba(102, 126, 234, 0.1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field::placeholder,
textarea.input-field::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

textarea.input-field {
    min-height: 100px;
    resize: vertical;
}

select.input-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ============================================
   DROPDOWN OPTION STYLES - ADD THIS
   ============================================ */

/* Style the dropdown options */
select.input-field option {
    background-color: var(--dark-card); /* Dark background */
    color: var(--text-primary); /* White text */
    padding: 12px;
    font-size: 0.875rem;
}

/* Style for selected option (visible in dropdown list) */
select.input-field option:checked,
select.input-field option:focus {
    background-color: var(--primary-start); /* Blue background for selected */
    color: white;
}

/* Hover effect for options */
select.input-field option:hover {
    background-color: rgba(102, 126, 234, 0.2); /* Light blue on hover */
    color: var(--text-primary);
}

/* For Firefox specifically */
select.input-field option {
    background-color: #232946;
    color: white;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
select.input-field::-webkit-listbox,
select.input-field::-webkit-scrollbar-track {
    background-color: var(--dark-card);
}

select.input-field::-webkit-scrollbar-thumb {
    background-color: var(--primary-start);
    border-radius: 4px;
}

/* If you still have issues, add these forced styles */
select, 
select option {
    background-color: var(--dark-card) !important;
    color: var(--text-primary) !important;
}

select option:hover,
select option:focus {
    background-color: rgba(102, 126, 234, 0.3) !important;
}

select option:checked {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end)) !important;
    color: white !important;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.form-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--error-start);
}

.input-error {
    border-color: var(--error-start) !important;
}

.input-success {
    border-color: var(--success-start) !important;
}

/* Checkbox and Radio */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.form-check-input {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-gradient {
    position: relative;
    overflow: hidden;
}

.card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-start), var(--accent-end));
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    margin-bottom: 1rem;
}

.card-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Company Card Specific */
.company-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.company-card:hover .action-buttons {
    opacity: 1;
}

.company-card.active {
    border-left-color: var(--success-start);
}

.company-card.inactive {
    border-left-color: var(--error-start);
    opacity: 0.9;
}

/* Stats Card */
.stats-card {
    border-radius: 16px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ============================================
   MODALS (FIXED - NO BLUR)
   ============================================ */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.modal-container.active {
    display: flex;
    pointer-events: all;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: var(--z-modal-backdrop);
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--dark-card);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: calc(var(--z-modal) + 1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--transition-fast);
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Delete Modal Specific */
.delete-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

.delete-modal .modal-body {
    padding: 2rem 1.5rem;
}

.delete-icon {
    font-size: 3rem;
    color: var(--warning-start);
    margin-bottom: 1rem;
}

/* ============================================
   STATUS TOGGLE
   ============================================ */
.status-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.status-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--error-start);
    transition: .4s;
    border-radius: 34px;
}

.status-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .status-slider {
    background-color: var(--success-start);
}

input:checked + .status-slider:before {
    transform: translateX(30px);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.rfq-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rfq-badge.success {
    background: rgba(56, 239, 125, 0.2);
    color: var(--success-start);
}

.rfq-badge.warning {
    background: rgba(252, 74, 26, 0.2);
    color: var(--warning-end);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--success-start), var(--success-end));
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-start), var(--warning-end));
    color: white;
}

.badge-error {
    background: linear-gradient(135deg, var(--error-start), var(--error-end));
    color: white;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
        overflow-x: auto;
        border-radius: 10px;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border-color);
    }
    
    .data-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .data-table th {
        background: rgba(0,0,0,0.2);
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: var(--text-primary);
        border-bottom: 2px solid var(--border-color);
    }
    
    .data-table td {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-secondary);
    }
    
    .data-table tbody tr {
        transition: all 0.2s ease;
    }
    
    .data-table tbody tr:hover {
        background: rgba(102, 126, 234, 0.05);
    }
    
    .data-table tbody tr:last-child td {
        border-bottom: none;
    }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-start);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-color: transparent;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-start);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(56, 239, 125, 0.1);
    border-color: var(--success-start);
    color: var(--success-start);
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--info-start);
    color: var(--info-start);
}

.alert-warning {
    background: rgba(252, 74, 26, 0.1);
    border-color: var(--warning-start);
    color: var(--warning-start);
}

.alert-error {
    background: rgba(235, 51, 73, 0.1);
    border-color: var(--error-start);
    color: var(--error-start);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
    margin-left: -1rem;
}

.col {
    flex: 1 0 0%;
    padding: 1rem;
}

/* Grid columns */
.col-1 { flex: 0 0 8.33333%; max-width: 8.33333%; }
.col-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
.col-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
.col-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
.col-11 { flex: 0 0 91.66667%; max-width: 91.66667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.align-center { align-items: center !important; }
.align-baseline { align-items: baseline !important; }
.align-stretch { align-items: stretch !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }

.m-1 { margin: 0.5rem !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mr-1 { margin-right: 0.5rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.ml-1 { margin-left: 0.5rem !important; }
.mx-1 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.my-1 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pr-0 { padding-right: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }

.p-1 { padding: 0.5rem !important; }
.pt-1 { padding-top: 0.5rem !important; }
.pr-1 { padding-right: 0.5rem !important; }
.pb-1 { padding-bottom: 0.5rem !important; }
.pl-1 { padding-left: 0.5rem !important; }
.px-1 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.py-1 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }

/* Text */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.font-weight-light { font-weight: 300 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-medium { font-weight: 500 !important; }
.font-weight-semibold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Position */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Overflow */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* Border */
.border { border: 1px solid var(--border-color) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-left { border-left: 1px solid var(--border-color) !important; }
.border-right { border-right: 1px solid var(--border-color) !important; }

.rounded { border-radius: 0.5rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

/* Background */
.bg-transparent { background-color: transparent !important; }
.bg-dark { background-color: var(--dark-bg) !important; }
.bg-darker { background-color: var(--dark-card) !important; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-end), var(--accent-start));
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-start) var(--dark-bg);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .row {
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }
    
    .col {
        padding: 0.5rem;
    }
    
    /* Stack columns on mobile */
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .table-responsive {
        margin: -0.5rem;
    }
    
    .table {
        min-width: 600px;
    }
    
    .action-buttons {
        opacity: 1 !important;
    }
}

@media (max-width: 576px) {
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        min-width: 2rem;
        height: 2rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .table {
        border: 1px solid #ddd !important;
    }
    
    .table th,
    .table td {
        border: 1px solid #ddd !important;
        color: black !important;
    }
}