/* Storage Management System Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.header-nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* Login Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Grid Layouts */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.location-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.location-card h4 {
    color: #333;
    margin-bottom: 16px;
    font-size: 18px;
}

.location-card a {
    display: block;
    color: #667eea;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.location-card a:hover {
    color: #5568d3;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

table tr:hover {
    background: #f8f9fa;
}

/* Storage Type Table Layout */
.storage-type-layout {
    display: grid;
    gap: 20px;
}

.storage-header-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.storage-header-table table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
}

.storage-header-table table th:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-title {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

.asset-table {
    background: white;
    border-radius: 8px;
}

.asset-table input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.asset-table input:focus {
    outline: none;
    border-color: #667eea;
}

/* Visual Display Styles */
.visual-display-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.visual-display {
    position: relative;
}

/* 1. Tank Vertical */
.tank-vertical {
    width: 140px;
    height: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top dome */
.tank-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    width: 140px;
    height: 45px;
    background: linear-gradient(135deg, #4a5568 0%, #718096 25%, #e2e8f0 50%, #a0aec0 75%, #4a5568 100%);
    border-radius: 50% 50% 0 0;
    border: 3px solid #2d3748;
    border-bottom: none;
    box-shadow:
        inset 0 5px 15px rgba(255,255,255,0.4),
        inset 0 -5px 10px rgba(0,0,0,0.2),
        0 -2px 5px rgba(0,0,0,0.1);
    z-index: 4;
}

/* Main tank body */
.tank-vertical::after {
    content: '';
    position: absolute;
    top: 40px;
    width: 140px;
    height: 160px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.3) 0%, transparent 20%, transparent 80%, rgba(255,255,255,0.3) 100%),
        linear-gradient(135deg, #2d3748 0%, #4a5568 15%, #e2e8f0 40%, #cbd5e0 60%, #4a5568 85%, #2d3748 100%);
    border: 3px solid #2d3748;
    border-radius: 5px;
    box-shadow:
        inset 5px 0 15px rgba(255,255,255,0.3),
        inset -5px 0 15px rgba(0,0,0,0.3),
        0 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
    pointer-events: none;
}

/* Bottom dome */
.tank-vertical .bottom-dome {
    position: absolute;
    bottom: 0;
    width: 140px;
    height: 45px;
    background: linear-gradient(135deg, #4a5568 0%, #718096 25%, #e2e8f0 50%, #a0aec0 75%, #4a5568 100%);
    border-radius: 0 0 50% 50%;
    border: 3px solid #2d3748;
    border-top: none;
    box-shadow:
        inset 0 5px 15px rgba(255,255,255,0.4),
        inset 0 -5px 10px rgba(0,0,0,0.2),
        0 3px 8px rgba(0,0,0,0.2);
    z-index: 4;
}

/* Tank body container for fill */
.tank-vertical .tank-body {
    position: absolute;
    top: 43px;
    width: 134px;
    height: 154px;
    overflow: hidden;
    border-radius: 3px;
    z-index: 2;
}

.tank-vertical .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 0;
    max-height: 100%;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.3) 0%,
            rgba(59, 130, 246, 0.9) 15%,
            rgba(96, 165, 250, 0.95) 30%,
            rgba(147, 197, 253, 0.9) 50%,
            rgba(96, 165, 250, 0.95) 70%,
            rgba(59, 130, 246, 0.9) 85%,
            rgba(0,0,0,0.3) 100%
        ),
        linear-gradient(180deg,
            rgba(59, 130, 246, 0.7) 0%,
            rgba(59, 130, 246, 0.95) 50%,
            rgba(37, 99, 235, 1) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 2px 10px rgba(255,255,255,0.3),
        inset 0 -2px 10px rgba(0,0,0,0.3);
    will-change: height;
    z-index: 1;
}

.tank-vertical .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg,
        rgba(147, 197, 253, 0.8) 0%,
        rgba(96, 165, 250, 0.4) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.3);
}

/* Measurement markings */
.tank-vertical .markings {
    position: absolute;
    top: 43px;
    right: 8px;
    width: 20px;
    height: 154px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.tank-vertical .markings::before,
.tank-vertical .markings::after {
    content: '';
    position: absolute;
    right: 0;
    width: 12px;
    height: 2px;
    background: rgba(0,0,0,0.4);
}

.tank-vertical .markings::before { top: 0; }
.tank-vertical .markings::after { bottom: 0; }

/* Support legs */
.tank-vertical .support {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 25px;
    background: linear-gradient(90deg, #2d3748, #4a5568, #2d3748);
    border: 2px solid #1a202c;
    border-radius: 2px;
}

.tank-vertical .support.left { left: 25px; }
.tank-vertical .support.right { right: 25px; }

/* 2. Tank Horizontal */
.tank-horizontal {
    width: 280px;
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left dome end */
.tank-horizontal::before {
    content: '';
    position: absolute;
    left: 0;
    width: 60px;
    height: 130px;
    background: linear-gradient(90deg, #2d3748 0%, #4a5568 20%, #e2e8f0 45%, #cbd5e0 55%, #4a5568 80%, #2d3748 100%);
    border-radius: 65px 0 0 65px;
    border: 3px solid #2d3748;
    box-shadow:
        inset 5px 0 15px rgba(255,255,255,0.3),
        inset -3px 0 10px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Right dome end */
.tank-horizontal::after {
    content: '';
    position: absolute;
    right: 0;
    width: 60px;
    height: 130px;
    background: linear-gradient(270deg, #2d3748 0%, #4a5568 20%, #e2e8f0 45%, #cbd5e0 55%, #4a5568 80%, #2d3748 100%);
    border-radius: 0 65px 65px 0;
    border: 3px solid #2d3748;
    box-shadow:
        inset -5px 0 15px rgba(255,255,255,0.3),
        inset 3px 0 10px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Main cylindrical body */
.tank-horizontal .tank-body {
    position: absolute;
    left: 57px;
    width: 166px;
    height: 124px;
    overflow: hidden;
    border-radius: 3px;
    z-index: 0;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.2) 0%,
            transparent 20%,
            transparent 80%,
            rgba(0,0,0,0.2) 100%
        ),
        linear-gradient(135deg, #2d3748 0%, #4a5568 15%, #e2e8f0 40%, #cbd5e0 60%, #4a5568 85%, #2d3748 100%);
    border: 3px solid #2d3748;
    border-left: none;
    border-right: none;
    box-shadow:
        inset 3px 0 10px rgba(255,255,255,0.3),
        inset -3px 0 10px rgba(0,0,0,0.2);
}

.tank-horizontal .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.4) 0%,
            rgba(59, 130, 246, 0.85) 20%,
            rgba(96, 165, 250, 0.95) 40%,
            rgba(147, 197, 253, 0.9) 60%,
            rgba(96, 165, 250, 0.95) 80%,
            rgba(59, 130, 246, 0.85) 95%,
            rgba(0,0,0,0.4) 100%
        ),
        linear-gradient(90deg,
            rgba(0,0,0,0.3) 0%,
            rgba(59, 130, 246, 0.9) 20%,
            rgba(96, 165, 250, 0.95) 50%,
            rgba(59, 130, 246, 0.9) 80%,
            rgba(0,0,0,0.3) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.3),
        inset 0 -3px 10px rgba(0,0,0,0.2);
}

/* Top highlight */
.tank-horizontal .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 15px;
    background: linear-gradient(180deg,
        rgba(147, 197, 253, 0.7) 0%,
        rgba(96, 165, 250, 0.2) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.4);
}

/* Support structure */
.tank-horizontal .support-leg {
    position: absolute;
    bottom: -30px;
    width: 15px;
    height: 35px;
    background: linear-gradient(90deg, #2d3748, #4a5568, #2d3748);
    border: 2px solid #1a202c;
    border-radius: 3px;
}

.tank-horizontal .support-leg:nth-of-type(1) { left: 40px; }
.tank-horizontal .support-leg:nth-of-type(2) { left: 120px; }
.tank-horizontal .support-leg:nth-of-type(3) { right: 40px; }

.tank-horizontal .support-base {
    position: absolute;
    bottom: -38px;
    width: 40px;
    height: 8px;
    background: linear-gradient(90deg, #1a202c, #2d3748, #1a202c);
    border: 2px solid #1a202c;
    border-radius: 3px;
}

.tank-horizontal .support-base:nth-of-type(4) { left: 28px; }
.tank-horizontal .support-base:nth-of-type(5) { left: 108px; }
.tank-horizontal .support-base:nth-of-type(6) { right: 28px; }

/* 3. Silo Tall */
.silo-tall {
    width: 120px;
    height: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Conical roof */
.silo-tall .roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 64px solid transparent;
    border-right: 64px solid transparent;
    border-bottom: 75px solid #4b5563;
    filter: drop-shadow(0 -2px 3px rgba(0,0,0,0.2));
    z-index: 3;
}

.silo-tall .roof::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -58px;
    width: 0;
    height: 0;
    border-left: 58px solid transparent;
    border-right: 58px solid transparent;
    border-bottom: 67px solid #6b7280;
}

.silo-tall .roof::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -50px;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 55px solid rgba(255,255,255,0.15);
}

/* Roof cap/vent */
.silo-tall .roof-cap {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 18px;
    background: linear-gradient(135deg, #374151 0%, #6b7280 50%, #374151 100%);
    border: 2px solid #1f2937;
    border-radius: 3px 3px 0 0;
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.3),
        0 -2px 4px rgba(0,0,0,0.3);
    z-index: 4;
}

/* Main cylindrical body */
.silo-tall .body {
    position: absolute;
    top: 72px;
    left: 0;
    width: 120px;
    height: 220px;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(107, 114, 128, 0.3) 10%,
            rgba(156, 163, 175, 0.2) 30%,
            rgba(209, 213, 219, 0.3) 50%,
            rgba(156, 163, 175, 0.2) 70%,
            rgba(107, 114, 128, 0.3) 90%,
            rgba(0,0,0,0.4) 100%
        ),
        linear-gradient(135deg, #374151 0%, #6b7280 25%, #d1d5db 50%, #9ca3af 75%, #374151 100%);
    border: 3px solid #1f2937;
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        inset 4px 0 15px rgba(255,255,255,0.2),
        inset -4px 0 15px rgba(0,0,0,0.3),
        0 5px 20px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Horizontal ribs/stiffeners */
.silo-tall .body::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #4b5563, #6b7280, #4b5563);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.silo-tall .body::after {
    content: '';
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #4b5563, #6b7280, #4b5563);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Fill indicator */
.silo-tall .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(245, 158, 11, 0.9) 15%,
            rgba(251, 191, 36, 0.95) 40%,
            rgba(253, 224, 71, 0.9) 60%,
            rgba(251, 191, 36, 0.95) 85%,
            rgba(0,0,0,0.4) 100%
        ),
        linear-gradient(180deg,
            rgba(245, 158, 11, 0.7) 0%,
            rgba(245, 158, 11, 0.95) 50%,
            rgba(217, 119, 6, 1) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.3),
        inset 0 -3px 10px rgba(0,0,0,0.3);
}

/* Surface ripple effect */
.silo-tall .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 25px;
    background: linear-gradient(180deg,
        rgba(253, 224, 71, 0.6) 0%,
        rgba(251, 191, 36, 0.2) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.3);
    animation: surface-ripple 3s ease-in-out infinite;
}

@keyframes surface-ripple {
    0%, 100% { transform: scaleY(0.3) scaleX(1); opacity: 0.6; }
    50% { transform: scaleY(0.35) scaleX(1.05); opacity: 0.4; }
}

/* Measurement scale */
.silo-tall .measurement-scale {
    position: absolute;
    top: 72px;
    right: 6px;
    width: 12px;
    height: 220px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.silo-tall .measurement-scale::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 3px;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.silo-tall .measurement-scale::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 3px;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 -1px 1px rgba(0,0,0,0.3);
}

/* Base foundation */
.silo-tall .base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 50%, #4b5563 100%);
    border: 3px solid #374151;
    border-radius: 3px;
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.2),
        0 3px 10px rgba(0,0,0,0.4);
    z-index: 2;
}

/* Ladder */
.silo-tall .ladder {
    position: absolute;
    top: 80px;
    left: 8px;
    width: 18px;
    height: 200px;
    z-index: 2;
    pointer-events: none;
}

.silo-tall .ladder::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #374151;
    box-shadow: 1px 0 2px rgba(0,0,0,0.3);
}

.silo-tall .ladder::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #374151;
    box-shadow: -1px 0 2px rgba(0,0,0,0.3);
}

/* 4. Silo Wide */
.silo-wide {
    width: 240px;
    height: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Low-profile conical roof */
.silo-wide .roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 40px solid #4b5563;
    filter: drop-shadow(0 -1px 2px rgba(0,0,0,0.2));
    z-index: 3;
}

.silo-wide .roof::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -70px;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 35px solid #6b7280;
}

.silo-wide .roof::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -65px;
    width: 0;
    height: 0;
    border-left: 65px solid transparent;
    border-right: 65px solid transparent;
    border-bottom: 28px solid rgba(255,255,255,0.1);
}

/* Roof vent cap */
.silo-wide .roof-cap {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 14px;
    background: linear-gradient(135deg, #374151 0%, #6b7280 50%, #374151 100%);
    border: 2px solid #1f2937;
    border-radius: 3px 3px 0 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
    z-index: 4;
}

/* Wide cylindrical body */
.silo-wide .body {
    position: absolute;
    top: 38px;
    left: 0;
    width: 240px;
    height: 95px;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(107, 114, 128, 0.3) 10%,
            rgba(156, 163, 175, 0.2) 30%,
            rgba(209, 213, 219, 0.3) 50%,
            rgba(156, 163, 175, 0.2) 70%,
            rgba(107, 114, 128, 0.3) 90%,
            rgba(0,0,0,0.4) 100%
        ),
        linear-gradient(135deg, #374151 0%, #6b7280 25%, #d1d5db 50%, #9ca3af 75%, #374151 100%);
    border: 3px solid #1f2937;
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        inset 4px 0 15px rgba(255,255,255,0.2),
        inset -4px 0 15px rgba(0,0,0,0.3),
        0 4px 15px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Horizontal seam lines */
.silo-wide .body::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4b5563, #6b7280, #4b5563);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.silo-wide .body::after {
    content: '';
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4b5563, #6b7280, #4b5563);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Fill indicator with grain material color */
.silo-wide .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(245, 158, 11, 0.9) 15%,
            rgba(251, 191, 36, 0.95) 40%,
            rgba(253, 224, 71, 0.9) 60%,
            rgba(251, 191, 36, 0.95) 85%,
            rgba(0,0,0,0.4) 100%
        ),
        linear-gradient(180deg,
            rgba(245, 158, 11, 0.7) 0%,
            rgba(245, 158, 11, 0.95) 50%,
            rgba(217, 119, 6, 1) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 2px 8px rgba(255,255,255,0.3),
        inset 0 -2px 8px rgba(0,0,0,0.3);
}

/* Surface texture */
.silo-wide .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 15px;
    background: linear-gradient(180deg,
        rgba(253, 224, 71, 0.5) 0%,
        rgba(251, 191, 36, 0.2) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.4);
}

/* Foundation base */
.silo-wide .base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 20px;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 50%, #4b5563 100%);
    border: 3px solid #374151;
    border-radius: 3px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 2px 8px rgba(0,0,0,0.4);
    z-index: 2;
}

/* Access platform/ladder */
.silo-wide .platform {
    position: absolute;
    top: 45px;
    right: 10px;
    width: 35px;
    height: 8px;
    background: linear-gradient(180deg, #4b5563, #374151);
    border: 2px solid #1f2937;
    border-radius: 2px;
    z-index: 2;
}

.silo-wide .platform::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: #374151;
    border: 1px solid #1f2937;
}

/* 5. Container Box */
.container-box {
    width: 200px;
    height: 160px;
    position: relative;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(0,0,0,0.1) 8px,
            rgba(0,0,0,0.1) 10px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 15px,
            rgba(0,0,0,0.05) 15px,
            rgba(0,0,0,0.05) 18px
        ),
        linear-gradient(135deg, #1e3a5f 0%, #2563eb 30%, #3b82f6 50%, #2563eb 70%, #1e3a5f 100%);
    border: 4px solid #1e3a5f;
    border-radius: 4px;
    box-shadow:
        inset 3px 3px 10px rgba(255,255,255,0.1),
        inset -3px -3px 10px rgba(0,0,0,0.3),
        0 5px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Corrugated metal texture overlay */
.container-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(255,255,255,0.03) 2px,
            transparent 4px,
            transparent 18px
        );
    pointer-events: none;
}

/* Top frame/rail */
.container-box::after {
    content: '';
    position: absolute;
    top: 8px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(180deg, #374151, #1f2937);
    border: 2px solid #111827;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Container corner castings */
.container-box .corner {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #4b5563, #374151);
    border: 2px solid #1f2937;
    border-radius: 2px;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.2);
}

.container-box .corner.tl { top: 6px; left: 6px; }
.container-box .corner.tr { top: 6px; right: 6px; }
.container-box .corner.bl { bottom: 6px; left: 6px; }
.container-box .corner.br { bottom: 6px; right: 6px; }

/* Ventilation holes */
.container-box .vent {
    position: absolute;
    top: 25px;
    width: 30px;
    height: 8px;
    display: flex;
    gap: 3px;
    justify-content: center;
}

.container-box .vent::before,
.container-box .vent::after {
    content: '';
    width: 6px;
    height: 100%;
    background: #111827;
    border-radius: 3px;
}

.container-box .vent.left { left: 20px; }
.container-box .vent.right { right: 20px; }

/* Fill indicator - grain/material */
.container-box .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(139, 92, 46, 0.8) 0px,
            rgba(161, 118, 67, 0.9) 3px,
            rgba(180, 137, 89, 0.85) 6px
        ),
        linear-gradient(90deg,
            rgba(0,0,0,0.3) 0%,
            rgba(217, 119, 6, 0.9) 15%,
            rgba(245, 158, 11, 0.95) 40%,
            rgba(251, 191, 36, 0.9) 60%,
            rgba(217, 119, 6, 0.9) 85%,
            rgba(0,0,0,0.3) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.2),
        inset 0 -3px 10px rgba(0,0,0,0.3);
}

/* Surface grain texture */
.container-box .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(0,0,0,0.05) 2px,
            transparent 4px
        );
    opacity: 0.5;
}

/* Container doors */
.container-box .doors {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 100%;
    border-left: 3px solid #1e3a5f;
    border-right: 3px solid #1e3a5f;
    pointer-events: none;
    z-index: 2;
}

.container-box .doors::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 40px;
    border: 3px solid #1f2937;
    border-radius: 3px;
    background: linear-gradient(135deg, #4b5563, #374151);
}

/* Container ID marking area */
.container-box .id-mark {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 8px;
    font-family: monospace;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

/* 6. Cylinder Vertical */
.cylinder-vertical {
    width: 130px;
    height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top dome */
.cylinder-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    width: 130px;
    height: 50px;
    background: linear-gradient(135deg, #059669 0%, #10b981 25%, #6ee7b7 50%, #34d399 75%, #059669 100%);
    border-radius: 50% 50% 0 0;
    border: 3px solid #047857;
    box-shadow:
        inset 0 8px 20px rgba(255,255,255,0.4),
        inset 0 -5px 15px rgba(0,0,0,0.2),
        0 -3px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Top dome highlight */
.cylinder-vertical::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.6), transparent 70%);
    border-radius: 50%;
}

/* Main cylindrical body */
.cylinder-vertical .tank-body {
    position: absolute;
    top: 45px;
    width: 130px;
    height: 155px;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.3) 0%,
            rgba(16, 185, 129, 0.4) 15%,
            rgba(52, 211, 153, 0.5) 40%,
            rgba(110, 231, 183, 0.6) 50%,
            rgba(52, 211, 153, 0.5) 60%,
            rgba(16, 185, 129, 0.4) 85%,
            rgba(0,0,0,0.3) 100%
        ),
        linear-gradient(135deg, #047857 0%, #059669 25%, #6ee7b7 50%, #34d399 75%, #047857 100%);
    border: 3px solid #047857;
    border-radius: 5px;
    overflow: hidden;
    box-shadow:
        inset 5px 0 15px rgba(255,255,255,0.3),
        inset -5px 0 15px rgba(0,0,0,0.3),
        0 5px 20px rgba(0,0,0,0.25);
    z-index: 1;
}

/* Vertical weld seams */
.cylinder-vertical .tank-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3), transparent);
}

.cylinder-vertical .tank-body::after {
    content: absolute;
    top: 0;
    right: 30%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3), transparent);
}

/* Bottom dome/skirt */
.cylinder-vertical .bottom-dome {
    position: absolute;
    bottom: 0;
    width: 130px;
    height: 25px;
    background: linear-gradient(135deg, #047857 0%, #059669 25%, #6ee7b7 50%, #34d399 75%, #047857 100%);
    border-radius: 0 0 50% 50%;
    border: 3px solid #047857;
    border-top: none;
    box-shadow:
        inset 0 5px 15px rgba(255,255,255,0.3),
        0 3px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Fill indicator - green liquid */
.cylinder-vertical .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.3) 0%,
            rgba(16, 185, 129, 0.85) 15%,
            rgba(52, 211, 153, 0.95) 40%,
            rgba(110, 231, 183, 0.9) 60%,
            rgba(52, 211, 153, 0.95) 85%,
            rgba(0,0,0,0.3) 100%
        ),
        linear-gradient(180deg,
            rgba(16, 185, 129, 0.75) 0%,
            rgba(16, 185, 129, 0.95) 50%,
            rgba(5, 150, 105, 1) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.3),
        inset 0 -3px 10px rgba(0,0,0,0.3);
}

/* Liquid surface */
.cylinder-vertical .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 20px;
    background: linear-gradient(180deg,
        rgba(110, 231, 183, 0.7) 0%,
        rgba(52, 211, 153, 0.3) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.3);
    animation: surface-ripple-green 3s ease-in-out infinite;
}

@keyframes surface-ripple-green {
    0%, 100% { transform: scaleY(0.3) scaleX(1); opacity: 0.6; }
    50% { transform: scaleY(0.35) scaleX(1.05); opacity: 0.4; }
}

/* Measurement scale */
.cylinder-vertical .measurement-scale {
    position: absolute;
    top: 45px;
    right: 8px;
    width: 12px;
    height: 155px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.cylinder-vertical .measurement-scale::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 3px;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cylinder-vertical .measurement-scale::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 3px;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 -1px 1px rgba(0,0,0,0.3);
}

/* Support legs */
.cylinder-vertical .support {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 25px;
    background: linear-gradient(90deg, #047857, #059669, #047857);
    border: 2px solid #065f46;
    border-radius: 2px;
}

.cylinder-vertical .support.left { left: 20px; }
.cylinder-vertical .support.right { right: 20px; }

/* Support base plate */
.cylinder-vertical .base-plate {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, #065f46, #047857, #065f46);
    border: 2px solid #064e3b;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Label/marking plate */
.cylinder-vertical .label-plate {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 25px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 3;
}

.cylinder-vertical .label-plate::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #92400e;
    border-radius: 1px;
}

.cylinder-vertical .label-plate::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #92400e;
    border-radius: 1px;
}
    left: 0;
    right: 0;
    background: linear-gradient(to top, #10b981, #34d399);
    transition: height 0.5s ease;
}

/* 7. Cylinder Horizontal */
.cylinder-horizontal {
    width: 300px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left dome end */
.cylinder-horizontal::before {
    content: '';
    position: absolute;
    left: 0;
    width: 65px;
    height: 120px;
    background: linear-gradient(90deg, #047857 0%, #059669 20%, #6ee7b7 45%, #34d399 55%, #059669 80%, #047857 100%);
    border-radius: 60px 0 0 60px;
    border: 3px solid #047857;
    box-shadow:
        inset 5px 0 15px rgba(255,255,255,0.3),
        inset -3px 0 10px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Right dome end */
.cylinder-horizontal::after {
    content: '';
    position: absolute;
    right: 0;
    width: 65px;
    height: 120px;
    background: linear-gradient(270deg, #047857 0%, #059669 20%, #6ee7b7 45%, #34d399 55%, #059669 80%, #047857 100%);
    border-radius: 0 60px 60px 0;
    border: 3px solid #047857;
    box-shadow:
        inset -5px 0 15px rgba(255,255,255,0.3),
        inset 3px 0 10px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Main cylindrical body */
.cylinder-horizontal .tank-body {
    position: absolute;
    left: 62px;
    width: 176px;
    height: 114px;
    overflow: hidden;
    border-radius: 3px;
    z-index: 0;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.15) 0%,
            transparent 25%,
            transparent 75%,
            rgba(0,0,0,0.15) 100%
        ),
        linear-gradient(135deg, #047857 0%, #059669 15%, #6ee7b7 40%, #34d399 60%, #059669 85%, #047857 100%);
    border: 3px solid #047857;
    border-left: none;
    border-right: none;
    box-shadow:
        inset 3px 0 10px rgba(255,255,255,0.3),
        inset -3px 0 10px rgba(0,0,0,0.2);
}

/* Horizontal weld seams */
.cylinder-horizontal .tank-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 35%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3), transparent);
}

.cylinder-horizontal .tank-body::after {
    content: '';
    position: absolute;
    top: 0;
    right: 35%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3), transparent);
}

.cylinder-horizontal .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.3) 0%,
            rgba(16, 185, 129, 0.85) 20%,
            rgba(52, 211, 153, 0.95) 40%,
            rgba(110, 231, 183, 0.9) 60%,
            rgba(52, 211, 153, 0.95) 80%,
            rgba(16, 185, 129, 0.85) 95%,
            rgba(0,0,0,0.3) 100%
        ),
        linear-gradient(90deg,
            rgba(0,0,0,0.2) 0%,
            rgba(16, 185, 129, 0.9) 25%,
            rgba(52, 211, 153, 0.95) 50%,
            rgba(16, 185, 129, 0.9) 75%,
            rgba(0,0,0,0.2) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.3),
        inset 0 -3px 10px rgba(0,0,0,0.2);
}

/* Surface highlight */
.cylinder-horizontal .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 12px;
    background: linear-gradient(180deg,
        rgba(110, 231, 183, 0.7) 0%,
        rgba(52, 211, 153, 0.2) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.4);
}

/* Support structure */
.cylinder-horizontal .support-saddle {
    position: absolute;
    bottom: -15px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #065f46, #047857, #065f46);
    border: 2px solid #064e3b;
    border-radius: 3px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.cylinder-horizontal .support-saddle:nth-of-type(1) { left: 60px; }
.cylinder-horizontal .support-saddle:nth-of-type(2) { left: 140px; }
.cylinder-horizontal .support-saddle:nth-of-type(3) { right: 60px; }

/* Support legs */
.cylinder-horizontal .leg {
    position: absolute;
    bottom: -35px;
    width: 8px;
    height: 25px;
    background: linear-gradient(90deg, #065f46, #047857, #065f46);
    border: 2px solid #064e3b;
    border-radius: 2px;
}

.cylinder-horizontal .leg:nth-of-type(4) { left: 65px; }
.cylinder-horizontal .leg:nth-of-type(5) { left: 145px; }
.cylinder-horizontal .leg:nth-of-type(6) { right: 65px; }

/* Base plate */
.cylinder-horizontal .base-plate {
    position: absolute;
    bottom: -40px;
    width: 50px;
    height: 8px;
    background: linear-gradient(90deg, #064e3b, #047857, #064e3b);
    border: 2px solid #064e3b;
    border-radius: 3px;
}

.cylinder-horizontal .base-plate:nth-of-type(7) { left: 45px; }
.cylinder-horizontal .base-plate:nth-of-type(8) { left: 125px; }
.cylinder-horizontal .base-plate:nth-of-type(9) { right: 45px; }

/* Access ladder/platform */
.cylinder-horizontal .ladder {
    position: absolute;
    top: -15px;
    left: 80px;
    width: 40px;
    height: 15px;
    background: linear-gradient(180deg, #065f46, #047857);
    border: 2px solid #064e3b;
    border-radius: 3px;
    z-index: 2;
}

.cylinder-horizontal .ladder::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 20px;
    background: #047857;
    border: 1px solid #064e3b;
}

/* Level indicator */
.cylinder-horizontal .level-gauge {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 8px;
    height: 80px;
    background: rgba(0,0,0,0.3);
    border: 2px solid #064e3b;
    border-radius: 4px;
    z-index: 2;
}

.cylinder-horizontal .level-gauge::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #34d399, #10b981);
    border-radius: 2px;
    animation: gauge-indicator 2s ease-in-out infinite;
}

@keyframes gauge-indicator {
    0%, 100% { height: 50%; }
    50% { height: 55%; }
}

/* 8. Hopper */
.hopper {
    width: 180px;
    height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top rectangular bin section */
.hopper .top {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 120px;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(120, 113, 108, 0.3) 10%,
            rgba(168, 162, 158, 0.2) 30%,
            rgba(214, 211, 209, 0.3) 50%,
            rgba(168, 162, 158, 0.2) 70%,
            rgba(120, 113, 108, 0.3) 90%,
            rgba(0,0,0,0.4) 100%
        ),
        linear-gradient(135deg, #44403c 0%, #57534e 25%, #a8a29e 50%, #78716c 75%, #44403c 100%);
    border: 3px solid #292524;
    border-bottom: none;
    overflow: hidden;
    box-shadow:
        inset 4px 0 15px rgba(255,255,255,0.1),
        inset -4px 0 15px rgba(0,0,0,0.3),
        0 4px 15px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Corrugated metal texture */
.hopper .top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(255,255,255,0.02) 2px,
            transparent 4px,
            transparent 18px
        );
    pointer-events: none;
}

/* Horizontal seam lines */
.hopper .top::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #44403c, #57534e, #44403c);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Funnel/cone bottom section */
.hopper .bottom {
    position: absolute;
    top: 118px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-top: 75px solid #57534e;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
    z-index: 1;
}

.hopper .bottom::before {
    content: '';
    position: absolute;
    top: -70px;
    left: -85px;
    width: 0;
    height: 0;
    border-left: 85px solid transparent;
    border-right: 85px solid transparent;
    border-top: 70px solid #78716c;
}

.hopper .bottom::after {
    content: '';
    position: absolute;
    top: -65px;
    left: -80px;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-top: 63px solid rgba(255,255,255,0.05);
}

/* Outlet pipe */
.hopper .outlet {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 25px;
    background: linear-gradient(135deg, #44403c 0%, #57534e 50%, #44403c 100%);
    border: 3px solid #292524;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 0;
}

.hopper .outlet::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 10px;
    background: linear-gradient(90deg, #292524, #44403c, #292524);
    border: 2px solid #1c1917;
    border-radius: 3px;
}

/* Fill indicator - grain material */
.hopper .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(234, 179, 8, 0.8) 0px,
            rgba(250, 204, 21, 0.85) 2px,
            rgba(234, 179, 8, 0.8) 4px
        ),
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(234, 179, 8, 0.9) 15%,
            rgba(250, 204, 21, 0.95) 40%,
            rgba(253, 224, 71, 0.9) 60%,
            rgba(250, 204, 21, 0.95) 85%,
            rgba(0,0,0,0.4) 100%
        );
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 2px 8px rgba(255,255,255,0.2),
        inset 0 -2px 8px rgba(0,0,0,0.3);
}

/* Surface texture */
.hopper .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(0,0,0,0.03) 2px,
            transparent 4px
        );
    opacity: 0.6;
}

/* Support legs */
.hopper .leg {
    position: absolute;
    bottom: -40px;
    width: 10px;
    height: 45px;
    background: linear-gradient(90deg, #292524, #44403c, #292524);
    border: 2px solid #1c1917;
    border-radius: 2px;
}

.hopper .leg.left { left: 20px; }
.hopper .leg.right { right: 20px; }

/* Leg base plates */
.hopper .foot {
    position: absolute;
    bottom: -48px;
    width: 30px;
    height: 10px;
    background: linear-gradient(90deg, #1c1917, #292524, #1c1917);
    border: 2px solid #0c0a09;
    border-radius: 3px;
}

.hopper .foot.left { left: 10px; }
.hopper .foot.right { right: 10px; }

/* Top rim/frame */
.hopper .rim {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    width: 190px;
    height: 10px;
    background: linear-gradient(180deg, #44403c, #292524);
    border: 3px solid #1c1917;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Access ladder */
.hopper .ladder {
    position: absolute;
    top: -10px;
    right: 15px;
    width: 20px;
    height: 110px;
    z-index: 3;
    pointer-events: none;
}

.hopper .ladder::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #292524;
    box-shadow: 1px 0 2px rgba(0,0,0,0.3);
}

.hopper .ladder::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #292524;
    box-shadow: -1px 0 2px rgba(0,0,0,0.3);
}

/* Safety railing on top */
.hopper .railing {
    position: absolute;
    top: -20px;
    left: 0;
    width: 180px;
    height: 25px;
    z-index: 2;
    pointer-events: none;
}

.hopper .railing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    width: 170px;
    height: 3px;
    background: #1c1917;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hopper .railing::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10px;
    width: 3px;
    height: 18px;
    background: #292524;
    box-shadow: 155px 0 0 #292524;
}

/* 9. Barrel */
.barrel {
    width: 140px;
    height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main barrel body - wooden texture */
.barrel::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 140px;
    height: 160px;
    background:
        repeating-linear-gradient(
            0deg,
            #92400e 0px,
            #a16207 1px,
            #b45309 2px,
            #a16207 3px,
            #92400e 4px
        ),
        linear-gradient(135deg, #78350f 0%, #a16207 25%, #f59e0b 50%, #a16207 75%, #78350f 100%);
    border-radius: 20px 20px 30px 30px;
    border: 4px solid #451a03;
    box-shadow:
        inset 5px 0 20px rgba(255,255,255,0.2),
        inset -5px 0 20px rgba(0,0,0,0.4),
        0 5px 20px rgba(0,0,0,0.4);
    z-index: 1;
}

/* Wood grain texture */
.barrel::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 140px;
    height: 160px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(0,0,0,0.1) 8px,
            transparent 16px
        );
    border-radius: 20px 20px 30px 30px;
    pointer-events: none;
    z-index: 2;
}

/* Metal hoops/bands - top */
.barrel .hoop-top {
    position: absolute;
    top: 25px;
    left: -8px;
    width: 156px;
    height: 12px;
    background: linear-gradient(180deg, #1f2937, #4b5563, #1f2937);
    border: 3px solid #111827;
    border-radius: 6px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.4);
    z-index: 3;
}

/* Metal hoop - middle */
.barrel .hoop-mid {
    position: absolute;
    top: 95px;
    left: -8px;
    width: 156px;
    height: 12px;
    background: linear-gradient(180deg, #1f2937, #4b5563, #1f2937);
    border: 3px solid #111827;
    border-radius: 6px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.4);
    z-index: 3;
}

/* Metal hoop - bottom */
.barrel .hoop-bottom {
    position: absolute;
    bottom: 20px;
    left: -8px;
    width: 156px;
    height: 12px;
    background: linear-gradient(180deg, #1f2937, #4b5563, #1f2937);
    border: 3px solid #111827;
    border-radius: 6px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.4);
    z-index: 3;
}

/* Barrel head/top */
.barrel .head {
    position: absolute;
    top: -5px;
    width: 130px;
    height: 30px;
    background:
        repeating-linear-gradient(
            0deg,
            #78350f 0px,
            #92400e 1px,
            #a16207 2px,
            #92400e 3px,
            #78350f 4px
        ),
        linear-gradient(135deg, #451a03 0%, #78350f 50%, #451a03 100%);
    border: 4px solid #451a03;
    border-radius: 10px;
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.1),
        0 -2px 8px rgba(0,0,0,0.3);
    z-index: 0;
}

/* Bunghole/plug */
.barrel .bung {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #451a03, #78350f);
    border: 3px solid #292524;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.barrel .bung::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #292524;
    border-radius: 50%;
}

/* Staves/joints */
.barrel .stave {
    position: absolute;
    top: 25px;
    width: 3px;
    height: 155px;
    background: linear-gradient(180deg, #451a03, #78350f, #451a03);
    z-index: 2;
}

.barrel .stave:nth-of-type(1) { left: 25px; }
.barrel .stave:nth-of-type(2) { left: 50px; }
.barrel .stave:nth-of-type(3) { left: 75px; }
.barrel .stave:nth-of-type(4) { left: 100px; }

/* Fill indicator - wine/liquid */
.barrel .fill {
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 155px;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(124, 58, 237, 0.7) 0px,
            rgba(139, 92, 246, 0.75) 1px,
            rgba(167, 139, 250, 0.7) 2px,
            rgba(139, 92, 246, 0.75) 3px,
            rgba(124, 58, 237, 0.7) 4px
        ),
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(124, 58, 237, 0.85) 15%,
            rgba(139, 92, 246, 0.9) 40%,
            rgba(167, 139, 250, 0.85) 60%,
            rgba(139, 92, 246, 0.9) 85%,
            rgba(0,0,0,0.4) 100%
        );
    border-radius: 0 0 25px 25px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.2),
        inset 0 -3px 10px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 2;
}

/* Liquid surface */
.barrel .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 18px;
    background: linear-gradient(180deg,
        rgba(167, 139, 250, 0.6) 0%,
        rgba(139, 92, 246, 0.3) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.3);
}

/* Barrel stand/cradle */
.barrel .stand {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: linear-gradient(180deg, #451a03, #78350f);
    border: 3px solid #292524;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    z-index: 0;
}

.barrel .stand::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    width: 15px;
    height: 12px;
    background: linear-gradient(90deg, #292524, #451a03);
    border: 2px solid #1c1917;
    border-radius: 3px;
}

.barrel .stand::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 10px;
    width: 15px;
    height: 12px;
    background: linear-gradient(90deg, #451a03, #292524);
    border: 2px solid #1c1917;
    border-radius: 3px;
}

/* Tap/spigot */
.barrel .tap {
    position: absolute;
    bottom: 50px;
    right: -20px;
    width: 25px;
    height: 8px;
    background: linear-gradient(180deg, #4b5563, #6b7280);
    border: 2px solid #374151;
    border-radius: 2px;
    z-index: 4;
}

.barrel .tap::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 12px;
    background: linear-gradient(135deg, #374151, #4b5563);
    border: 2px solid #1f2937;
    border-radius: 2px;
}

/* Branding/label area */
.barrel .label {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #92400e;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: #78350f;
    text-align: center;
}

.barrel .label::before {
    content: 'PREMIUM';
}

/* 10. Custom Rectangular */
.custom-rectangular {
    width: 200px;
    height: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main storage body */
.custom-rectangular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 150px;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(100, 116, 139, 0.3) 15%,
            rgba(148, 163, 184, 0.2) 40%,
            rgba(203, 213, 225, 0.3) 60%,
            rgba(148, 163, 184, 0.2) 85%,
            rgba(100, 116, 139, 0.3) 100%
        ),
        linear-gradient(135deg, #334155 0%, #475569 25%, #94a3b8 50%, #64748b 75%, #334155 100%);
    border: 4px solid #1e293b;
    border-radius: 5px;
    box-shadow:
        inset 5px 0 20px rgba(255,255,255,0.15),
        inset -5px 0 20px rgba(0,0,0,0.3),
        0 5px 25px rgba(0,0,0,0.4);
    z-index: 1;
}

/* Panel/grid pattern overlay */
.custom-rectangular::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 150px;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 35px,
            rgba(0,0,0,0.15) 35px,
            rgba(0,0,0,0.15) 38px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 48px,
            rgba(0,0,0,0.15) 48px,
            rgba(0,0,0,0.15) 51px
        );
    border-radius: 3px;
    pointer-events: none;
    z-index: 2;
}

/* Top frame/rail */
.custom-rectangular .top-rail {
    position: absolute;
    top: -6px;
    left: -3px;
    width: 206px;
    height: 12px;
    background: linear-gradient(180deg, #475569, #1e293b);
    border: 3px solid #0f172a;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 3;
}

/* Reinforcement corners */
.custom-rectangular .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #64748b, #475569);
    border: 2px solid #334155;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 3;
}

.custom-rectangular .corner.tl { top: 5px; left: 5px; }
.custom-rectangular .corner.tr { top: 5px; right: 5px; }
.custom-rectangular .corner.bl { bottom: 5px; left: 5px; }
.custom-rectangular .corner.br { bottom: 5px; right: 5px; }

/* Measurement window/gauge */
.custom-rectangular .gauge-window {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 3px solid #334155;
    border-radius: 5px;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.5),
        0 2px 5px rgba(0,0,0,0.3);
    z-index: 3;
    overflow: hidden;
}

.custom-rectangular .gauge-window::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #ec4899, #f472b6);
    border-radius: 2px;
    animation: custom-gauge 3s ease-in-out infinite;
}

@keyframes custom-gauge {
    0%, 100% { height: 50%; }
    50% { height: 55%; }
}

/* Gauge markings */
.custom-rectangular .gauge-window::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 2px;
    height: 50px;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(255,255,255,0.5) 0px,
            rgba(255,255,255,0.5) 2px,
            transparent 2px,
            transparent 10px
        );
}

/* Fill indicator - pink liquid */
.custom-rectangular .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,0.4) 0%,
            rgba(236, 72, 153, 0.85) 15%,
            rgba(244, 114, 182, 0.9) 40%,
            rgba(251, 182, 206, 0.85) 60%,
            rgba(244, 114, 182, 0.9) 85%,
            rgba(0,0,0,0.4) 100%
        ),
        linear-gradient(180deg,
            rgba(236, 72, 153, 0.75) 0%,
            rgba(236, 72, 153, 0.95) 50%,
            rgba(219, 39, 119, 1) 100%
        );
    border-radius: 0 0 3px 3px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 3px 10px rgba(255,255,255,0.3),
        inset 0 -3px 10px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 2;
}

/* Surface ripple */
.custom-rectangular .fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 20px;
    background: linear-gradient(180deg,
        rgba(251, 182, 206, 0.7) 0%,
        rgba(244, 114, 182, 0.3) 100%
    );
    border-radius: 50%;
    transform: scaleY(0.3);
}

/* Bubbles */
.custom-rectangular .fill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: bubble-rise 4s ease-in infinite;
}

@keyframes bubble-rise {
    0% { bottom: 0; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { bottom: 100%; opacity: 0; }
}

/* Outlet valve */
.custom-rectangular .valve {
    position: absolute;
    bottom: 10px;
    left: -15px;
    width: 20px;
    height: 30px;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    border: 3px solid #475569;
    border-radius: 3px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    z-index: 3;
}

.custom-rectangular .valve::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background: linear-gradient(90deg, #475569, #64748b);
    border: 2px solid #334155;
    border-radius: 2px;
}

.custom-rectangular .valve::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Label plate */
.custom-rectangular .label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: #92400e;
    text-align: center;
}

.custom-rectangular .label::before {
    content: 'CUSTOM';
}

/* Support structure */
.custom-rectangular .support {
    position: absolute;
    bottom: -20px;
    width: 10px;
    height: 25px;
    background: linear-gradient(90deg, #475569, #64748b, #475569);
    border: 2px solid #334155;
    border-radius: 2px;
}

.custom-rectangular .support:nth-of-type(1) { left: 30px; }
.custom-rectangular .support:nth-of-type(2) { left: 95px; }
.custom-rectangular .support:nth-of-type(3) { right: 30px; }

/* Base plate */
.custom-rectangular .base {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 8px;
    background: linear-gradient(90deg, #334155, #475569, #334155);
    border: 2px solid #1e293b;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Ventilation grilles */
.custom-rectangular .vent {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 6px;
    display: flex;
    gap: 2px;
    justify-content: center;
    z-index: 3;
}

.custom-rectangular .vent::before,
.custom-rectangular .vent::after {
    content: '';
    width: 4px;
    height: 100%;
    background: #1e293b;
    border-radius: 2px;
}

.custom-rectangular .vent.left { left: 25px; }
.custom-rectangular .vent.right { right: 70px; }

/* Capacity Label */
.capacity-label {
    text-align: center;
    margin-top: 50px;
    font-weight: 600;
    color: #555;
}

.fill-percentage {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #667eea;
}

/* Amount Table Styles */
.amount-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.amount-label-table, .amount-value-table {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.amount-label-table {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.amount-value-table {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

/* Transaction Table */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table thead th {
    background: #667eea;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
}

.transaction-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #e0e0e0;
}

.transaction-table tbody tr:hover {
    background: #f8f9fa;
}

.transaction-table input {
    width: 100%;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.transaction-table input:focus {
    outline: none;
    border-color: #667eea;
}

/* Edit/Delete buttons for transactions */
.actions-cell {
    width: 80px;
    text-align: center;
}

.btn-edit {
    padding: 4px 12px;
    font-size: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-delete {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 5px;
}

.btn-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.btn-save {
    padding: 4px 12px;
    font-size: 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #059669;
}

.btn-cancel {
    padding: 4px 12px;
    font-size: 12px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #4b5563;
}

/* Editing row styles */
.transaction-table tbody tr.editing-row {
    background: #fffbeb;
}

.transaction-table tbody tr.editing-row td {
    padding: 5px 8px;
}

.transaction-table tbody tr.editing-row input {
    padding: 6px;
    font-size: 14px;
}

.actions-cell {
    white-space: nowrap;
    width: 100px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Date Filter Navigation */
.date-filter-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.date-filter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.date-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.date-filter-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.date-filter-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.date-filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.date-range-display {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Custom Date Range Picker */
.custom-date-range {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-top: 15px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 6px;
    flex-wrap: wrap;
}

.custom-date-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-date-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.custom-date-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

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

.btn-apply {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-apply:hover {
    background: #5568d3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-filter-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-filter-buttons {
        width: 100%;
    }

    .date-filter-btn {
        flex: 1;
        min-width: 0;
    }

    .custom-date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-date-group input {
        width: 100%;
    }

    .btn-apply {
        width: 100%;
    }
}

/* History Modal */
.history-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.history-table th {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.history-table tr:hover {
    background: #f8f9fa;
}

.history-table .btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.history-table .btn-delete:hover {
    background: #dc2626;
}

/* 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;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

/* Alert Messages */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
}

/* Volume Conversions Display */
.volume-conversions {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 11px;
}

.volume-conversions .text-muted {
    color: #6c757d;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.conversion-item {
    display: inline-block;
    margin-right: 12px;
    color: #495057;
}

.conversion-amount {
    font-weight: 600;
    color: #2c3e50;
}

.conversion-symbol {
    color: #6c757d;
    font-size: 10px;
}

/* Conversion option styling in edit forms */
.conversion-option {
    margin-bottom: 8px;
}

.conversion-factor-input input[type="number"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.conversion-factor-input input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.conversion-factor-input select {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.conversion-factor-input select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab:hover {
    color: #667eea;
}

.tab.active {
    border-bottom-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

.tab-content {
    display: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .visual-display-container {
        flex-direction: column;
        align-items: center;
    }

    .amount-container {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Visual Preview for Admin Panel */
.visual-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.visual-preview-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.preview-label {
    margin-top: 15px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

/* Table Preview Styles */
.table-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.table-visual {
    transform: scale(0.6);
    transform-origin: center;
}
