/**
 * BuildCalc - Construction Material Calculator & Estimator
 * Main Stylesheet
 */

/* ===== CSS Variables for Easy Theming ===== */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary-color: #64748b;
    --secondary-dark: #475569;
    --secondary-light: #94a3b8;
    
    /* Accent Colors */
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fb923c;
    
    /* Status Colors */
    --success-color: #10b981;
    --success-dark: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
    
    /* Font */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-modal-backdrop: 1050;
    --z-modal: 1100;
    --z-tooltip: 1200;
    --z-toast: 1300;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 1.5rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.125rem; margin-bottom: var(--spacing-xs); }
h5 { font-size: 1rem; margin-bottom: var(--spacing-xs); }
h6 { font-size: 0.875rem; margin-bottom: var(--spacing-xs); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) var(--spacing-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.navbar-nav .nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.navbar-nav .nav-link.danger {
    color: var(--danger-color);
}

.navbar-nav .nav-link.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
}

.navbar-toggler-icon {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.navbar-toggler-icon:hover {
    background: var(--text-primary);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-dropdown) - 1;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: var(--z-dropdown);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    padding: var(--spacing-lg) var(--spacing-xl);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .mobile-nav {
    margin-top: var(--spacing-lg);
}

.mobile-menu .mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-menu .mobile-nav-item:hover {
    background: var(--bg-tertiary);
}

.mobile-menu .mobile-nav-item.active {
    background: rgba(37, 99, 235, 0.1);
    border-left: 3px solid var(--primary-color);
}

/* ===== Cards ===== */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.btn-group {
    display: inline-flex;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.form-label .required {
    color: var(--danger-color);
}

.form-input {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:hover:not(:disabled):not(:focus) {
    border-color: var(--text-tertiary);
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-input:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.form-input-error {
    border-color: var(--danger-color);
}

.form-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.form-select {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

.form-select:hover:not(:disabled):not(:focus) {
    border-color: var(--text-tertiary);
}

.form-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-checkbox,
.form-radio {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

/* ===== Tables ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-primary);
}

.table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.table thead th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:last-child {
    border-bottom: 2px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.table tbody td {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.table-action-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
}

/* ===== Dropdown Menu ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-slow);
    display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-xs) 0;
}

/* ===== Alerts ===== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-dark);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-dark);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info-color);
    color: var(--info-color);
}

.alert h5 {
    font-weight: 600;
    margin: 0 0 var(--spacing-xs) 0;
}

/* ===== Progress Bar ===== */
.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 18px;
    color: white;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: none;
    opacity: 0;
    visibility: hidden;
}

.modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
}

.modal-dialog {
    max-width: 600px;
    margin: var(--spacing-xl) auto;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ===== Tabs ===== */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-xs);
}

.nav-tabs .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.tab-content {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: var(--spacing-lg);
    background: var(--bg-primary);
}

/* ===== Breadcrumbs ===== */
.breadcrumb {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    font-size: 0.8rem;
    list-style: none;
    padding: var(--spacing-sm) 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: var(--text-tertiary);
    margin-left: var(--spacing-sm);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== Spinner ===== */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.loading-overlay .spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* ===== Stats Cards ===== */
.stats-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-fast);
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stats-icon.primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.stats-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stats-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stats-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stats-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Calculator Cards ===== */
.calculation-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-fast);
}

.calculation-card:hover {
    box-shadow: var(--shadow-md);
}

.calculation-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.calculation-card-header h4 {
    color: white;
    margin: 0;
    font-size: 1.125rem;
}

.calculation-card-body {
    padding: var(--spacing-lg);
}

.calculation-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

/* ===== Material List Items ===== */
.material-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.material-item:last-child {
    border-bottom: none;
}

.material-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.material-details {
    flex: 1;
    min-width: 0;
}

.material-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.material-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ===== Calculation Summary ===== */
.calc-summary {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.calc-summary-item {
    flex: 1;
    min-width: 150px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
}

.calc-summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.calc-summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== Currency ===== */
.currency-symbol {
    font-weight: 600;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    color: var(--text-primary);
}

.price.highlight {
    color: var(--success-color);
    font-weight: 700;
}

.price.danger {
    color: var(--danger-color);
}

/* ===== Disclaimer ===== */
.disclaimer {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-lg);
    line-height: 1.6;
}

/* ===== Welcome Screen ===== */
.welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.welcome-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: var(--spacing-2xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.welcome-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -1px;
}

.welcome-logo span {
    color: var(--accent-color);
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.installation-form .form-group {
    max-width: 400px;
    margin: 0 auto var(--spacing-md) auto;
}

.installation-form .form-label {
    font-size: 0.875rem;
}

/* ===== Requirements Screen ===== */
.requirements-screen {
    min-height: 100vh;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.requirements-card {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.requirement-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.requirement-item.pass .requirement-icon {
    background: var(--success-color);
    color: white;
}

.requirement-item.fail .requirement-icon {
    background: var(--danger-color);
    color: white;
}

.requirement-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.requirement-details {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.requirement-item.pass .requirement-details {
    color: var(--success-color);
}

.requirement-item.fail .requirement-details {
    color: var(--danger-color);
}

/* ===== Login Page ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    max-width: 450px;
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
}

.login-header h1 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.login-body {
    padding: var(--spacing-xl);
}

/* ===== Dashboard ===== */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: var(--spacing-xl) var(--spacing-xl);
    color: white;
}

.dashboard-header h1 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.dashboard-content {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.project-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.project-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.project-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.project-card-body {
    padding: var(--spacing-md);
}

.project-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.project-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ===== Materials Page ===== */
.materials-screen {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.materials-list {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-box {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.add-material-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-material-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.material-card-grid-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.material-card-grid-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.material-card-grid-item h5 {
    margin-bottom: var(--spacing-xs);
}

/* ===== Project Detail ===== */
.project-detail-screen {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.project-detail-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow);
}

.project-header-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.project-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.project-header-info h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.project-header-info p {
    font-size: 0.875rem;
    margin: 0;
}

.project-header-meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.project-tabs {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-tab-item {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.project-tab-item:hover {
    background: var(--bg-tertiary);
}

.project-tab-item.active {
    background: var(--bg-primary);
    border-bottom-color: var(--primary-color);
}

.project-tab-content {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    min-height: 300px;
}

/* ===== Calculator Page ===== */
.calculator-screen {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.calculator-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.calculator-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.calculator-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.calculator-icon.concrete { background: linear-gradient(135deg, #8B4513, #D2691E); color: white; }
.calculator-icon.cement { background: linear-gradient(135deg, #696969, #A9A9A9); color: white; }
.calculator-icon.chb { background: linear-gradient(135deg, #DAA520, #FFD700); color: white; }
.calculator-icon.rebar { background: linear-gradient(135deg, #40E0D0, #00FA9A); color: white; }
.calculator-icon.flooring { background: linear-gradient(135deg, #FF6347, #DC143C); color: white; }
.calculator-icon.roofing { background: linear-gradient(135deg, #708090, #2F4F4F); color: white; }
.calculator-icon.paint { background: linear-gradient(135deg, #FF1493, #FF69B4); color: white; }
.calculator-icon.plaster { background: linear-gradient(135deg, #F0E68C, #DEB887); color: white; }
.calculator-icon.general { background: linear-gradient(135deg, #4169E1, #00008B); color: white; }

.calc-input-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
}

.calc-result-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    color: white;
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-xl);
}

.calc-result-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.calc-result-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.calc-result-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.calc-result-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Share Screen ===== */
.share-screen {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.share-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    max-width: 500px;
}

/* ===== Profile Screen ===== */
.profile-screen {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.profile-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    max-width: 600px;
}

.profile-header {
    text-align: center;
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto var(--spacing-sm) auto;
}

.profile-info h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.profile-info p {
    font-size: 0.875rem;
    margin: 0;
}

/* ===== Settings Screen ===== */
.settings-screen {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.settings-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    max-width: 600px;
}

/* ===== Backup Screen ===== */
.backup-screen {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
}

.backup-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    max-width: 500px;
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-small { font-size: 0.8rem; }
.text-medium { font-size: 1rem; }
.text-large { font-size: 1.125rem; }

.w-100 { width: 100%; }
.w-auto { width: auto; }

.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card,
    .project-detail-header,
    .tab-content,
    .backup-card,
    .settings-card,
    .profile-card,
    .share-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .calc-result-section {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd;
    }
    
    .print-header {
        display: block !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ===== Print Styles ===== */
.print-header {
    display: none;
}

@media print {
    .print-header {
        display: block !important;
        margin-bottom: var(--spacing-xl);
    }
    
    .print-header h1 {
        color: black;
        font-size: 1.5rem;
    }
    
    .print-header p {
        color: #666;
    }
    
    .no-print {
        display: none !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 0.8rem;
    }
    
    .navbar {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: var(--spacing-xs);
    }
    
    .modal-dialog {
        max-width: 100%;
        margin: var(--spacing-md) auto;
    }
    
    .calc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-card-header {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button hover focus */
.btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.8);
    outline-offset: 2px;
}

/* ===== Utility: Text Colors ===== */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

/* ===== Utility: Background Colors ===== */
.bg-primary { background: var(--bg-primary) !important; }
.bg-secondary { background: var(--bg-secondary) !important; }
.bg-tertiary { background: var(--bg-tertiary) !important; }

/* ===== Utility: Text Alignment ===== */
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }

/* ===== Utility: Font Sizes ===== */
.fs-xs { font-size: 0.75rem !important; }
.fs-sm { font-size: 0.8rem !important; }
.fs-md { font-size: 0.875rem !important; }
.fs-lg { font-size: 1rem !important; }
.fs-xl { font-size: 1.125rem !important; }
.fs-2xl { font-size: 1.25rem !important; }
.fs-3xl { font-size: 1.5rem !important; }
.fs-4xl { font-size: 1.75rem !important; }
.fs-5xl { font-size: 2rem !important; }
.fs-6xl { font-size: 2.25rem !important; }

/* ===== Utility: Font Weights ===== */
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

/* ===== Utility: Widths ===== */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }

/* ===== Utility: Heights ===== */
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }

/* ===== Utility: Text Truncation ===== */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Utility: Visibility ===== */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* ===== Utility: Position ===== */
.position-relativeabsolute { position: absolute !important; }
.position-relativerelative { position: relative !important; }
.position-sticky { position: sticky !important; }

/* ===== Utility: Overflow ===== */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }

/* ===== Utility: Opacity ===== */
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ===== Utility: Blurring ===== */
.blur { filter: blur(8px); }

/* ===== Utility: Shaking ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-1px); }
    20%, 40%, 60%, 80% { transform: translateX(1px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* ===== Utility: PULSING ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Utility: BOUNCING ===== */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bounce {
    animation: bounce 1s infinite;
}

/* ===== Utility: FADE ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeIn {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.fadeOut {
    animation: fadeOut 0.3s ease-out;
}

/* ===== Utility: SLIDE ===== */
@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slideIn {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.slideOut {
    animation: slideOut 0.3s ease-out;
}

/* ===== Utility: ROTATION ===== */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate {
    animation: rotate 1s linear infinite;
}

/* ===== Utility: SCALE ===== */
@keyframes scale {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.scale {
    animation: scale 0.3s ease-out;
}

/* ===== Utility: GLOW ===== */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-light); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* ===== Utility: SHIMMER ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== Custom SVG Icons ===== */
.icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: middle;
}

.icon-lg {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.icon-sm {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

/* ===== Calculator-Specific ===== */
.calculation-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.calculation-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ===== Production Layout Alignment ===== */
.container-fluid > .row {
    align-items: flex-start;
}

.main-content {
    min-height: calc(100vh - 120px);
    padding: var(--spacing-xl);
}

.quick-actions {
    align-items: stretch;
}

.stat-card {
    height: 100%;
    text-align: center;
}

.stat-icon {
    margin: 0 auto var(--spacing-sm);
}

.setup-container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.checklist-item {
    gap: var(--spacing-sm);
}

.checklist-item input {
    flex: 0 0 auto;
    margin-right: 0 !important;
}

.checklist-item label {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .main-content {
        padding: var(--spacing-md);
    }

    .welcome-banner {
        padding: var(--spacing-lg) !important;
    }
}

.calculation-row {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.calculation-row:last-child {
    border-bottom: none;
}

.calculation-unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.calculation-input-error {
    border-color: var(--danger-color);
    animation: shake 0.5s;
}

/* ===== Result Display ===== */
.calc-result {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.calc-result-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.calc-result-item .calc-result-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.calc-result-item .calc-result-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
}

.calc-result-item .calc-result-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-left: var(--spacing-sm);
}

/* ===== Unit Selector ===== */
.unit-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.unit-chip {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.unit-chip:hover {
    background: var(--bg-tertiary);
}

.unit-chip.selected {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.unit-chip.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== Progress Steps ===== */
.progress-steps {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    max-width: 120px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto var(--spacing-sm) auto;
}

.step-content {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.progress-step.active .step-number {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.progress-step.completed {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--success-color);
}

/* ===== Form Validation ===== */
.form-valid {
    border-color: var(--success-color);
}

.form-invalid {
    border-color: var(--danger-color);
}

.form-valid::placeholder,
.form-select.form-valid {
    color: var(--success-color);
}

.form-invalid::placeholder,
.form-select.form-invalid {
    color: var(--danger-color);
}

/* ===== Drag and Drop ===== */
.draggable {
    cursor: grab;
}

.draggable:active {
    cursor: grabbing;
}

.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.drag-over {
    background: rgba(37, 99, 235, 0.05);
    border: 2px dashed var(--primary-color);
}

/* ===== Tooltip ===== */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--text-primary);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
    pointer-events: none;
    margin-bottom: var(--spacing-xs);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* ===== Loading States ===== */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    pointer-events: none;
}

.loading.spinner {
    background: transparent;
}

/* ===== Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 12px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* ===== Animation Classes ===== */
.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-bounce {
    animation: bounce 0.5s ease-in-out;
}

/* ===== Permissions/Notifications ===== */
.permission-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permission-badge.owner {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.permission-badge.editor {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.permission-badge.viewer {
    background: rgba(147, 112, 218, 0.15);
    color: #9370db;
    border: 1px solid #9370db;
}

/* ===== Project Sharing ===== */
.shared-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.shared-item-header {
    flex: 1;
    min-width: 0;
}

.shared-name {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.shared-owner {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
}

.shared-permission {
    margin-left: var(--spacing-md);
}

.shared-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.share-controls {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== Material Category Tags ===== */
.category-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: var(--spacing-xs);
}

.category-tag.concrete {
    background: rgba(139, 69, 19, 0.15);
    color: #8B4513;
}

.category-category.masonry { background: rgba(139, 90, 23, 0.15); color: #8B6513; }
.category-category.flooring { background: rgba(255, 140, 0, 0.15); color: #FF8C00; }
.category-category.roofing { background: rgba(112, 128, 144, 0.15); color: #708090; }
.category-category.finishings { background: rgba(138, 43, 226, 0.15); color: #8A2BE2; }

/* ===== Empty State Icons ===== */
.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    margin-bottom: var(--spacing-lg);
}

/* ===== Welcome Logo ===== */
.welcome-logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.5s ease-out;
}

.welcome-logo span {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Button Group ===== */
.btn-group {
    display: inline-flex;
    border-radius: var(--radius);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.btn-group .btn:first-child:last-child,
.btn-group .btn:first-child:last-child {
    border-radius: var(--radius);
}

/* ===== Tab Content ===== */
.tab-content {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* ===== Print Styles ===== */
@media print {
    .navbar {
        display: none !important;
    }
    
    body {
        background: white;
        font-size: 10pt;
    }
    
    .card,
    .card-header,
    .card-body,
    .card-footer {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .calc-result-section {
        background: white !important;
        color: black !important;
    }
    
    .calc-summary-item {
        border: 1px solid #ccc !important;
    }
    
    .no-print {
        display: block !important;
    }
    
    .print-header {
        display: block !important;
        page-break-after: always;
    }
    
    .print-header h1 {
        color: black;
        font-size: 24pt;
        margin-bottom: 12pt;
    }
}

/* ===== Print Styles ===== */
@media print {
    .print-header {
        display: block !important;
        margin-bottom: 24pt;
        border-bottom: 2px solid black;
        padding-bottom: 12pt;
    }
    
    .print-header h1 {
        color: black;
        font-size: 24pt;
        margin: 0 0 6pt 0;
    }
    
    .print-header p {
        color: #666;
        font-size: 10pt;
        margin: 0;
    }
}

.no-print {
    display: block !important;
}

/* ===== Loading Spinner ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

.spinner-overlay .spinner {
    width: 64px;
    height: 64px;
    border-width: 4px;
}

/* ===== Error Message ===== */
.error-message {
    padding: var(--spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: var(--radius-sm);
    color: var(--danger-color);
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
}

.error-message h5 {
    font-weight: 600;
    margin: 0 0 var(--spacing-xs) 0;
}

.error-message ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.error-message li {
    margin-bottom: var(--spacing-xs);
}

.error-message a {
    color: var(--danger-color);
    text-decoration: underline;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-tertiary);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.4;
    color: var(--text-tertiary);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.empty-state-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Confirmation Modal ===== */
.confirmation-modal .modal-content {
    max-width: 400px;
}

.confirmation-modal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-2xl);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.confirmation-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.confirmation-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.confirmation-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    max-width: 400px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

.toast-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--spacing-xs);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ===== Responsive Queries ===== */
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 100%;
        margin: var(--spacing-md) 0;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .calc-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .card {
        padding: var(--spacing-lg);
    }
    
    .calculator-screen {
        padding: var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .navbar {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .calculator-screen {
        padding: var(--spacing-xl);
    }
    
    .dashboard-content {
        padding: var(--spacing-xl);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== Project Card Specific ===== */
.project-card-detail {
    position: absolute;
    left: 100%;
    top: 0;
    width: 350px;
    max-width: 90vw;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    z-index: 1000;
    margin-left: var(--spacing-md);
    transform: translateX(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.project-card-detail.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-card:hover .project-card-detail {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-card-detail-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.project-card-detail-item:last-child {
    border-bottom: none;
}

.project-card-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.project-card-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Calculator Card Detail ===== */
.calculator-card-detail {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
    animation: fadeIn 0.3s ease-out;
}

.calculator-card-detail h4 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-primary);
}

.calculator-card-detail p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: var(--spacing-sm) 0;
}

/* ===== Material Detail Modal ===== */
.material-detail-view {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
}

.material-detail-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.material-detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: var(--spacing-xl);
    color: white;
}

.material-detail-body {
    padding: var(--spacing-xl);
}

.material-detail-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ===== Print Material Report ===== */
.material-report {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
}

.material-report h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24pt;
    color: black;
    border-bottom: 2px solid #ccc;
    padding-bottom: 15px;
}

.material-report-section {
    margin-bottom: 25px;
}

.material-report-section h2 {
    font-size: 14pt;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.material-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
}

.material-report-table th,
.material-report-table td {
    padding: 8px;
    border: 1px solid #ccc;
}

.material-report-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.material-report-total {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid #333;
    border-radius: 4px;
}

.material-report-total h3 {
    margin: 0 0 5px 0;
    font-size: 14pt;
}

.material-report-disclaimer {
    font-size: 8pt;
    color: #666;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ===== Print Project Report ===== */
.project-report {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
}

.project-report h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24pt;
    color: black;
}

.project-report-info {
    margin-bottom: 30px;
    font-size: 10pt;
}

.project-report-section {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.project-report-section h2 {
    font-size: 14pt;
    color: #333;
    margin-bottom: 10px;
}

.project-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
}

.project-report-table th,
.project-report-table td {
    padding: 8px;
    border: 1px solid #ccc;
}

.project-report-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.project-report-total {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid #333;
    border-radius: 4px;
}

.project-report-total h3 {
    margin: 0 0 5px 0;
    font-size: 14pt;
}

.project-report-disclaimer {
    font-size: 8pt;
    color: #666;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ===== Utility ===== */
.shadow-none {
    box-shadow: none !important;
}

.rounded-none {
    border-radius: 0 !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded {
    border-radius: var(--radius) !important;
}

.rounded-md {
    border-radius: var(--radius-md) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-full {
    border-radius: var(--radius-full) !important;
}

.border-0 {
    border: 0 !important;
}

.border {
    border: 1px solid var(--border-color) !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;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

.border-danger {
    border-color: var(--danger-color) !important;
}

.border-warning {
    border-color: var(--warning-color) !important;
}

.border-dark {
    border-color: var(--text-primary) !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

/* ===== Visibility ===== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.d-inline-block {
    display: inline-block !important;
}

/* ===== Text Utilities ===== */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

.text-light {
    color: var(--text-tertiary) !important;
}

.text-white {
    color: white !important;
}

.text-black {
    color: black !important;
}

/* ===== Background Utilities ===== */
.bg-white {
    background: white !important;
}

.bg-black {
    background: black !important;
}

.bg-light {
    background: var(--bg-secondary) !important;
}

.bg-dark {
    background: var(--bg-primary) !important;
}

/* ===== Flex Utilities ===== */
.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.justify-content-evenly {
    justify-content: space-evenly !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

/* ===== Flex Direction ===== */
.flex-row {
    flex-direction: row !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-column-reverse {
    flex-direction: column-reverse !important;
}

.flex-row-reverse {
    flex-direction: row-reverse !important;
}

/* ===== Flex Wrap ===== */
.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

/* ===== Flex Grow ===== */
.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-grow-2 {
    flex-grow: 2 !important;
}

.flex-grow-3 {
    flex-grow: 3 !important;
}

.flex-grow-4 {
    flex-grow: 4 !important;
}

.flex-grow-5 {
    flex-grow: 5 !important;
}

/* ===== Flex Shrink ===== */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-shrink-1 {
    flex-shrink: 1 !important;
}

/* ===== Position ===== */
.position-static {
    position: static !important;
}

.position-relativeabsolute {
    position: absolute !important;
}

.position-relativefixed {
    position: fixed !important;
}

.position-sticky {
    position: sticky !important;
}

/* ===== Overflow ===== */
.overflow-visible {
    overflow: visible !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-auto {
    overflow: auto !important;
}

.overflow-scroll {
    overflow: scroll !important;
}

/* ===== Display ===== */
.display-none {
    display: none !important;
}

.display-block {
    display: block !important;
}

.display-flex {
    display: flex !important;
}

.display-inline-flex {
    display: inline-flex !important;
}

.display-inline-block {
    display: inline-block !important;
}

/* ===== Text Truncation ===== */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Whitespace ===== */
.whitespace-normal {
    white-space: normal !important;
}

.whitespace-no-wrap {
    white-space: nowrap !important;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

/* ===== Text Transform ===== */
.text-uppercase {
    text-transform: uppercase !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

/* ===== Font Family ===== */
.font-sans {
    font-family: var(--font-family) !important;
}

.font-mono {
    font-family: var(--font-mono) !important;
}

/* ===== Font Weight ===== */
.font-light {
    font-weight: 300 !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* ===== Font Size ===== */
.fs-1 {
    font-size: 0.75rem !important;
}

.fs-2 {
    font-size: 0.875rem !important;
}

.fs-3 {
    font-size: 1rem !important;
}

.fs-4 {
    font-size: 1.125rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1.5rem !important;
}

.fs-7 {
    font-size: 1.75rem !important;
}

.fs-8 {
    font-size: 2rem !important;
}

/* ===== Letter Spacing ===== */
.letter-spacing-none {
    letter-spacing: 0 !important;
}

.letter-spacing-tight {
    letter-spacing: -0.5px !important;
}

.letter-spacing-wide {
    letter-spacing: 0.5px !important;
}

.letter-spacing-wider {
    letter-spacing: 1px !important;
}

.letter-spacing-widest {
    letter-spacing: 2px !important;
}

/* ===== Line Height ===== */
.line-height-none {
    line-height: 1 !important;
}

.line-height-tight {
    line-height: 1.25 !important;
}

.line-height-snug {
    line-height: 1.375 !important;
}

.line-height-normal {
    line-height: 1.5 !important;
}

.line-height-relaxed {
    line-height: 1.625 !important;
}

.line-height-loose {
    line-height: 2 !important;
}

/* ===== Text Decoration ===== */
.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-underline {
    text-decoration: underline !important;
}

.text-decoration-line-through {
    text-decoration: line-through !important;
}

/* ===== Vertical Align ===== */
.v-align-start {
    vertical-align: top !important;
}

.v-align-middle {
    vertical-align: middle !important;
}

.v-align-bottom {
    vertical-align: bottom !important;
}

/* ===== User Select ===== */
.user-select-none {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.user-select-all {
    -webkit-user-select: all !important;
    -moz-user-select: all !important;
    -ms-user-select: all !important;
    user-select: all !important;
}

.user-select-text {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ===== Pointer Events ===== */
.pointer-events-auto {
    pointer-events: auto !important;
}

.pointer-events-none {
    pointer-events: none !important;
}

.pointer-events-all {
    pointer-events: all !important;
}

/* ===== Cursor ===== */
.cursor-auto {
    cursor: auto !important;
}

.cursor-default {
    cursor: default !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-help {
    cursor: help !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.cursor-wait {
    cursor: wait !important;
}

.cursor-move {
    cursor: move !important;
}

.cursor-text {
    cursor: text !important;
}

.cursor-crosshair {
    cursor: crosshair !important;
}

/* ===== Table Utilities ===== */
.table-auto {
    width: auto !important;
}

.table-bordered {
    border: 1px solid var(--border-color) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--bg-secondary) !important;
}

.table-hover tbody tr:hover {
    background: var(--bg-tertiary) !important;
}

/* ===== Form Control States ===== */
.is-valid {
    border-color: var(--success-color) !important;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

/* ===== Image Utilities ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: white;
}

.img-fixed {
    width: 100px;
    height: 100px;
}

/* ===== Aspect Ratio ===== */
.aspect-ratio-1 {
    aspect-ratio: 1 / 1 !important;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9 !important;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3 !important;
}

/* ===== Border Width ===== */
.border-0 {
    border-width: 0 !important;
}

.border-1 {
    border-width: 1px !important;
}

.border-2 {
    border-width: 2px !important;
}

.border-3 {
    border-width: 3px !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-5 {
    border-width: 5px !important;
}

/* ===== Border Style ===== */
.border-dashed {
    border-style: dashed !important;
}

.border-dotted {
    border-style: dotted !important;
}

.border-solid {
    border-style: solid !important;
}

/* ===== Border Radius ===== */
.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ===== Shadow ===== */
.shadow-none {
    box-shadow: none !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* ===== Border Color ===== */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

.border-danger {
    border-color: var(--danger-color) !important;
}

.border-warning {
    border-color: var(--warning-color) !important;
}

.border-info {
    border-color: var(--info-color) !important;
}

/* ===== Background Position ===== */
.bg-position-top {
    background-position: top !important;
}

.bg-position-center {
    background-position: center !important;
}

.bg-position-bottom {
    background-position: bottom !important;
}

/* ===== Background Size ===== */
.bg-size-cover {
    background-size: cover !important;
}

.bg-size-contain {
    background-size: contain !important;
}

.bg-size-auto {
    background-size: auto !important;
}

/* ===== Text Overflow ===== */
.text-clip {
    overflow: clip !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Transform ===== */
.transform-none {
    transform: none !important;
}

.transform-scale {
    transform: scale(1.1) !important;
}

.transform-rotate {
    transform: rotate(5deg) !important;
}

/* ===== Transition ===== */
.transition-none {
    transition: none !important;
}

.transition-fast {
    transition: all 150ms ease-in-out !important;
}

.transition {
    transition: all 200ms ease-in-out !important;
}

.transition-slow {
    transition: all 300ms ease-in-out !important;
}

/* ===== Animation ===== */
.animate-none {
    animation: none !important;
}

.animate-spin {
    animation: spin 1s linear infinite !important;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

.animate-bounce {
    animation: bounce 1s infinite !important;
}

.animate-fade {
    animation: fadeIn 0.3s ease-out !important;
}

/* ===== Z-Index ===== */
.z-0 {
    z-index: 0 !important;
}

.z-10 {
    z-index: 10 !important;
}

.z-20 {
    z-index: 20 !important;
}

.z-30 {
    z-index: 30 !important;
}

.z-40 {
    z-index: 40 !important;
}

.z-50 {
    z-index: 50 !important;
}

/* ===== Responsive ===== */
@media (min-width: 576px) {
    .sm\:d-none { display: none !important; }
    .sm\:d-block { display: block !important; }
    .sm\:d-flex { display: flex !important; }
}

@media (min-width: 768px) {
    .md\:d-none { display: none !important; }
    .md\:d-block { display: block !important; }
    .md\:d-flex { display: flex !important; }
    .md\:flex-row { flex-direction: row !important; }
    .md\:flex-column { flex-direction: column !important; }
}

@media (min-width: 992px) {
    .lg\:d-none { display: none !important; }
    .lg\:d-block { display: block !important; }
    .lg\:d-flex { display: flex !important; }
}

@media (min-width: 1200px) {
    .xl\:d-none { display: none !important; }
    .xl\:d-block { display: block !important; }
    .xl\:d-flex { display: flex !important; }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 576px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* ===== Tablet Responsive ===== */
@media (min-width: 768px) and (max-width: 992px) {
    .tablet-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* ===== Desktop Responsive ===== */
@media (min-width: 992px) {
    .desktop-only {
        display: block !important;
    }
    
    .tablet-only {
        display: none !important;
    }
    
    .mobile-only {
        display: none !important;
    }
}
