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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    font-size: 2rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weight-unit-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 500;
}

.weight-unit-selector label {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.weight-unit-selector select {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 100px;
}

.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #666;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-btn.active {
    background: #667eea;
    color: white;
}


/* Main Content */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Inventory Styles */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inventory-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.inventory-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.import-export-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #666;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: none;
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    min-width: 250px;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

select {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.item-card.selected {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.item-category {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.item-weight {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.item-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.item-manufacturer-product {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-select {
    background: #667eea;
    color: white;
}

.btn-select:hover {
    background: #5a6fd8;
}

.btn-remove {
    background: #ff6b6b;
    color: white;
}

.btn-remove:hover {
    background: #ff5252;
}

/* Packing List Styles */
.packing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.packing-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.packing-controls {
    display: flex;
    gap: 1rem;
}

/* Weight Summary */
.weight-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.weight-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.weight-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.weight-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.weight-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Packing Categories */
.packing-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.packing-category {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.packing-category h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-weight {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.packing-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.packing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}
/* Dark mode: brighten packing list items */
body.dark-mode .packing-item { background: #2e4055; color: #f1f5f9; border: 1px solid rgba(255,255,255,0.08); }
body.dark-mode .packing-item:hover { background: #39506b; }
body.dark-mode .item-info .name { color: #ffffff; }
body.dark-mode .item-info .details { color: #e5ecf5; }
body.dark-mode .item-weight-display { color: #eaf0f7; }
body.dark-mode .weight-breakdown { color: #cbd5e1; }

.packing-item:hover {
    background: #e9ecef;
}

.packing-item.worn {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-left: 4px solid #28a745;
}

.packing-item.shared {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-info .name {
    font-weight: 600;
    color: #333;
}

.item-info .details {
    font-size: 0.9rem;
    color: #666;
}

.item-weight-display {
    font-weight: 600;
    color: #667eea;
}

.weight-breakdown {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    background: #5a6fd8;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.worn-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}
body.dark-mode .worn-toggle { color: #e5ecf5; }

.worn-toggle input[type="checkbox"],
.shared-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
}

.shared-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}
body.dark-mode .shared-toggle { color: #e5ecf5; }

.shared-toggle input[type="checkbox"] {
    accent-color: #ffc107;
}

/* Statistics Styles */
.stats-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #666;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.category-breakdown {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Dark mode overrides for Statistics card */
body.dark-mode .category-breakdown {
    background: #33465e;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.category-breakdown h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
body.dark-mode .category-breakdown h3 { color: #ffffff; }

.category-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-name {
    font-weight: 500;
    color: #333;
}

.category-stats {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

/* Item Row Styles for Statistics */
.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}
body.dark-mode .item-row { background: #2e4055; color: #eaf0f7; }
body.dark-mode .item-row:hover { background: #39506b; }
body.dark-mode .item-info .item-name { color: #ffffff; }
body.dark-mode .item-info .item-details, body.dark-mode .item-stats { color: #e5ecf5; }
body.dark-mode .item-stats .total-weight, body.dark-mode .item-stats .carried-weight, body.dark-mode .item-stats .worn-weight { color: #eaf0f7; }

.item-row:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.item-info .item-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.item-info .item-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.item-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.item-stats .quantity {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.item-stats .total-weight {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.item-stats .carried-weight,
.item-stats .worn-weight {
    font-size: 0.8rem;
    color: #888;
}

.item-stats .worn-weight {
    color: #28a745;
    font-weight: 500;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.worn {
    background: #d4edda;
    color: #155724;
}

.status-badge.shared {
    background: #fff3cd;
    color: #856404;
}

.status-badge.consumable {
    background: #d1ecf1;
    color: #0c5460;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.category-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.category-input-group select {
    flex: 1;
}

.new-category-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.new-category-input input {
    flex: 1;
    margin: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-controls {
        order: 2;
    }

    .nav {
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .nav-btn i {
        font-size: 0.9rem;
    }
}

/* Extra small screens - stack navigation vertically */
@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-btn i {
        font-size: 1rem;
    }

    .main {
        padding: 1rem;
    }

    .inventory-header,
    .packing-header {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-controls,
    .packing-controls {
        justify-content: center;
    }

    .search-box input {
        min-width: 200px;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .weight-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .packing-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .item-controls {
        justify-content: space-between;
    }

    .item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .item-stats {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .weight-summary {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Loading and Empty States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: white;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card,
.weight-card,
.stat-card,
.packing-category {
    animation: fadeIn 0.3s ease;
}

/* Help Section Styles */
.help-header {
    text-align: center;
    margin-bottom: 3rem;
}

.help-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.help-content {
    max-width: 1000px;
    margin: 0 auto;
}

.help-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Dark mode overrides for Help/How to Use content */
body.dark-mode .help-section {
    background: #33465e;
    color: #f1f5f9;
}

.help-section h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section h3 i {
    color: #667eea;
}

/* Help Steps */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.help-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.step-content ul {
    color: #666;
    padding-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.25rem;
}

/* Weight Explanation */
.weight-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.weight-card-explanation {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}
body.dark-mode .weight-card-explanation {
    background: #2e4055;
    color: #eaf0f7;
    border-left-color: #5a8dee;
}

.weight-card-explanation.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #5a6fd8;
}

.weight-card-explanation h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.weight-card-explanation p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.worn-weight-example {
    background: #e8f5e8;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #28a745;
}
body.dark-mode .worn-weight-example {
    background: #254a36;
    border-left-color: #2ecc71;
}
body.dark-mode .worn-weight-example h4,
body.dark-mode .worn-weight-example p,
body.dark-mode .worn-weight-example ul {
    color: #d9fbe2;
}

.worn-weight-example h4 {
    color: #155724;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.worn-weight-example p {
    color: #155724;
    margin-bottom: 1rem;
}

.worn-weight-example ul {
    color: #155724;
    padding-left: 1.5rem;
}

.worn-weight-example li {
    margin-bottom: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}
body.dark-mode .feature-card {
    background: #2e4055;
    color: #eaf0f7;
}
body.dark-mode .feature-card h4 { color: #ffffff; }
body.dark-mode .feature-card p { color: #e5ecf5; }

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

.feature-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.workflow-step {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    min-width: 200px;
    flex-shrink: 0;
}
body.dark-mode .workflow-step {
    background: #2e4055;
    color: #eaf0f7;
}
body.dark-mode .workflow-content h4 { color: #ffffff; }
body.dark-mode .workflow-content p { color: #e5ecf5; }

.workflow-icon {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.workflow-content h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.workflow-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.workflow-arrow {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #ffc107;
}
body.dark-mode .tip-card {
    background: linear-gradient(135deg, #5c4f26 0%, #6b5a29 100%);
    color: #fff6d5;
    border-left-color: #ffd34d;
}
body.dark-mode .tip-card h4,
body.dark-mode .tip-card p,
body.dark-mode .tip-card i { color: #fff6d5; }

.tip-card i {
    color: #856404;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tip-card p {
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* CSV Format */
.csv-format {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}
body.dark-mode .csv-format {
    background: #2e4055;
    border-color: #536579;
}

.csv-header {
    background: #667eea;
    color: white;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    padding: 1rem;
    font-weight: 600;
}

.csv-example {
    background: white;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}
body.dark-mode .csv-example {
    background: #1f2a37;
    color: #eaf0f7;
}

.csv-header span,
.csv-example span {
    padding: 0.25rem;
    border-right: 1px solid #e9ecef;
}

.csv-header span:last-child,
.csv-example span:last-child {
    border-right: none;
}

/* About Section Styles */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* Dark mode overrides for About content boxes */
body.dark-mode .about-section {
    background: #33465e;
    color: #f1f5f9;
}
body.dark-mode .about-section h3 { color: #ffffff; }
body.dark-mode .about-section p { color: #e5ecf5; }

.highlight-card {
    background: white;
}
body.dark-mode .highlight-card {
    background: #2e4055;
    color: #eaf0f7;
}
.feature-item {
    background: transparent;
}
body.dark-mode .feature-item {
    background: #2e4055;
    border-radius: 12px;
    padding: 1rem;
}

.about-section h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section h3 i {
    color: #667eea;
}

/* Story Content */
.about-story {
    line-height: 1.7;
}

.story-content p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* About Images */
.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin: 1.5rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.story-image {
    text-align: center;
    margin: 2rem 0;
}

.features-image {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
}

.philosophy-image {
    text-align: center;
    margin: 1.5rem 0;
}

.image-caption {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.highlight-quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.highlight-quote p {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    border-left: 4px solid #667eea;
}

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

.highlight-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Features Overview */
.features-overview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    background: #667eea;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Philosophy */
.philosophy-content {
    line-height: 1.7;
}

.philosophy-quote {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.philosophy-quote p {
    color: #155724;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.philosophy-content p {
    color: #555;
    margin-bottom: 1.5rem;
}

/* Contact */
.contact-info {
    text-align: center;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-method i {
    color: #667eea;
    font-size: 1.2rem;
}

.contact-method span {
    color: #333;
    font-weight: 500;
}

/* Technical Info */
.technical-info {
    line-height: 1.6;
}

.technical-info p {
    color: #555;
    margin-bottom: 1rem;
}

.technical-info ul {
    color: #555;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.technical-info li {
    margin-bottom: 0.5rem;
}

.technical-info strong {
    color: #333;
}

/* Responsive Design for Help and About */
@media (max-width: 768px) {
    .help-section,
    .about-section {
        padding: 1.5rem;
    }
    
    .help-step {
        flex-direction: column;
        text-align: center;
    }
    
    .workflow-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .features-grid,
    .tips-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .weight-explanation {
        grid-template-columns: 1fr;
    }
    
    .csv-header,
    .csv-example {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .csv-header span,
    .csv-example span {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 0.5rem;
    }
    
    .csv-header span:last-child,
    .csv-example span:last-child {
        border-bottom: none;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
        max-width: 300px;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #f1f5f9; /* Lighter base text */
}

body.dark-mode .header {
    background: rgba(44, 62, 80, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .logo {
    color: #5dade2;
}

body.dark-mode .nav-btn {
    color: #e2e8f0;
}

body.dark-mode .nav-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

body.dark-mode .nav-btn.active {
    background: #3498db;
    color: white;
}

/* Headings and general text in dark mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff; /* Ensure headings are bright */
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode .text-muted {
    color: #e5ecf5; /* Slightly lighter paragraphs and muted text */
}

body.dark-mode .item-card,
body.dark-mode .weight-card,
body.dark-mode .stat-card,
body.dark-mode .packing-category,
body.dark-mode .help-section,
body.dark-mode .about-section {
    /* Unified dark card surface across app */
    background: #33465e;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

body.dark-mode .item-card:hover {
    background: #39506b;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

/* Ensure inventory card texts are bright in dark mode */
body.dark-mode .item-name { color: #ffffff; }
body.dark-mode .item-manufacturer-product { color: #e5ecf5; }
body.dark-mode .item-details { color: #e5ecf5; }

body.dark-mode .item-card.selected {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #3498db;
}

body.dark-mode .weight-card.total {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

body.dark-mode .packing-item {
    background: #2e4055;
    color: #f1f5f9;
}

body.dark-mode .packing-item:hover {
    background: #34495e;
}

body.dark-mode .packing-item.worn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

body.dark-mode .packing-item.shared {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

body.dark-mode .modal-content {
    background: #3b4c62;
    color: #f1f5f9;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: #2c3e50;
    border: 1px solid #7f8c8d;
    color: #f1f5f9;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

body.dark-mode .search-box input {
    background: #2c3e50;
    border: 1px solid #7f8c8d;
    color: #f1f5f9;
}

/* Improve input placeholder readability in dark mode */
body.dark-mode ::placeholder {
    color: #cbd5e1;
}

body.dark-mode .search-box input:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

body.dark-mode select {
    background: #2c3e50;
    border: 1px solid #7f8c8d;
    color: #f1f5f9;
}

body.dark-mode .weight-unit-selector {
    background: #2c3e50;
    border: 1px solid #7f8c8d;
    color: #ecf0f1;
}

body.dark-mode .weight-unit-selector select {
    background: #34495e;
    color: #f1f5f9;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .dark-mode-toggle {
    color: #3498db;
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}


/* Category Management Styles */
.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-group input {
    flex: 1;
}

.category-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

body.dark-mode .category-list {
    background: #2c3e50;
    border: 1px solid #7f8c8d;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

body.dark-mode .category-item {
    background: #3b4c62;
    border: 1px solid #7f8c8d;
    color: #f1f5f9;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-name {
    font-weight: 500;
    color: #333;
}

body.dark-mode .category-name {
    color: #ffffff;
}

.category-stats {
    font-size: 0.9rem;
    color: #666;
    margin-right: 1rem;
}

body.dark-mode .category-stats {
    color: #dbe4ee;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete-category {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.btn-delete-category:hover {
    background: #c82333;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 50;
    }
    
    body.dark-mode .nav {
        background: rgba(44, 62, 80, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    
    .nav-text {
        margin-left: 0.5rem;
    }
    
    .header-content {
        position: relative;
    }
    
    .packing-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .import-export-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .import-export-controls .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group button {
        width: 100%;
    }
}

/* Calculator Styles */
.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.unit-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toggle-btn.active {
    background: #667eea;
    border-color: #667eea;
}

.calculator-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-form .form-group {
    margin-bottom: 0;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    position: relative;
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.calculator-form input:focus,
.calculator-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tooltip Styles */
.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
    cursor: help;
    color: #667eea;
    font-weight: bold;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 1rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Food Planner Styles */
.food-planner {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.food-planner h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.food-planner p {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

#food-items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.food-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.food-item input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.food-item .remove-food {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.food-item .remove-food:hover {
    background: #c82333;
}

.food-total {
    font-weight: 600;
    color: #667eea;
    text-align: right;
}

.food-summary {
    background: #e8f5e8;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #28a745;
}

.food-summary > div {
    margin-bottom: 0.5rem;
}

.calorie-difference {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Calculator Results Styles */
.calculator-results {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calculator-results h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.results-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.result-row.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #5a6fd8;
}

.result-label {
    font-weight: 600;
    color: #333;
}

.result-row.total .result-label {
    color: white;
}

.result-value {
    font-weight: 600;
    color: #667eea;
    text-align: right;
}

.result-row.total .result-value {
    color: white;
}

/* Assumptions Modal Styles */
.assumptions-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    align-items: center;
}

.table-row input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Dark Mode Calculator Styles */
body.dark-mode .calculator-form,
body.dark-mode .food-planner,
body.dark-mode .calculator-results {
    background: #33465e;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

body.dark-mode .calculator-form label,
body.dark-mode .food-planner h3,
body.dark-mode .calculator-results h3 {
    color: #ffffff;
}

body.dark-mode .calculator-form input,
body.dark-mode .calculator-form select,
body.dark-mode .table-row input,
body.dark-mode .food-item input {
    background: #2c3e50;
    border: 1px solid #7f8c8d;
    color: #f1f5f9;
}

body.dark-mode .calculator-form input:focus,
body.dark-mode .calculator-form select:focus,
body.dark-mode .table-row input:focus,
body.dark-mode .food-item input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

body.dark-mode .food-item {
    background: #2e4055;
    border: 1px solid #536579;
    color: #eaf0f7;
}

body.dark-mode .food-summary {
    background: #254a36;
    border-left-color: #2ecc71;
    color: #d9fbe2;
}

body.dark-mode .result-row {
    background: #2e4055;
    color: #eaf0f7;
}

body.dark-mode .result-label {
    color: #ffffff;
}

body.dark-mode .table-header {
    background: #2c3e50;
    color: #f1f5f9;
}

body.dark-mode .table-row {
    background: #3b4c62;
    border: 1px solid #7f8c8d;
    color: #f1f5f9;
}

body.dark-mode .tooltip-text {
    background-color: #2c3e50;
    color: #f1f5f9;
}

body.dark-mode .tooltip-text::after {
    border-color: #2c3e50 transparent transparent transparent;
}

/* Responsive Calculator Styles */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .food-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .food-item input {
        width: 100%;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .result-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
    }
    
    .result-value {
        text-align: center;
    }
}

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

.text-muted {
    color: #666;
}

.font-weight-bold {
    font-weight: 600;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}
