/* Auto Exotic - Blue & White Palm Tree Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Palm tree watermark */
body::before {
    content: '🌴';
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-size: 150px;
    opacity: 0.05;
    z-index: 0;
    transform: rotate(-10deg);
    filter: brightness(0.5);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    background: linear-gradient(135deg, #013991 0%, #1051c9 50%, #1868e3 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(30, 95, 142, 0.3);
    position: relative;
    overflow: hidden;
}

/* Palm tree decoration in header */
.header::after {
    content: '🌴';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    opacity: 0.3;
}

.header h1 {
    color: white;
    font-size: 2.2em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 600;
}

.header .subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1em;
    font-style: italic;
}

.tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #1a1a1a;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(30, 95, 142, 0.3);
    border: 1px solid #1051c9;
}

.tab {
    padding: 12px 18px;
    background: #2a2a2a;
    border: 2px solid transparent;
    color: #7cb8ff;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 500;
}

.tab:hover {
    background: #333333;
    border-color: #1868e3;
    transform: translateY(-1px);
}

.tab.active {
    background: linear-gradient(135deg, #1051c9 0%, #1868e3 100%);
    color: white;
    border-color: #013991;
    box-shadow: 0 2px 8px rgba(30, 95, 142, 0.3);
}

.tab-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 95, 142, 0.3);
    min-height: 500px;
    border: 1px solid #1051c9;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #222222;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    border-left: 5px solid #1868e3;
    box-shadow: 0 2px 8px rgba(30, 95, 142, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(30, 95, 142, 0.4);
    transform: translateY(-2px);
    border-color: #1868e3;
}

.card h3 {
    color: #1868e3;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid #1051c9;
    padding-bottom: 8px;
}

.stat-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #1051c9;
    margin: 10px 0;
}

.stat-label {
    color: #7cb8ff;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
    padding: 12px;
    text-align: left;
    color: #1868e3;
    font-weight: 600;
    border-bottom: 2px solid #1051c9;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #e0e0e0;
}

tr:hover {
    background: #2a2a2a;
}

tr:nth-child(even) {
    background: #1f1f1f;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    background: #2a2a2a;
    border: 2px solid #333333;
    color: #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1868e3;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: #333333;
}

button {
    background: linear-gradient(135deg, #1051c9 0%, #1868e3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(30, 95, 142, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 95, 142, 0.3);
    background: linear-gradient(135deg, #1868e3 0%, #1051c9 100%);
}

button.secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

button.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #7cb8ff;
    font-size: 0.95em;
    font-weight: 500;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #28a745;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #ffc107;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #dc3545;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-progress {
    background: rgba(52, 152, 219, 0.15);
    color: #1868e3;
}

.status-complete {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.quick-calc {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 2px solid #1868e3;
}

.result-box {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 2px solid #1868e3;
}

.tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 5px;
    text-transform: uppercase;
}

.tier-vip {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0a0a0a;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.tier-regular {
    background: linear-gradient(135deg, #c0c0c0 0%, #d8d8d8 100%);
    color: #0a0a0a;
}

.tier-new {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 82, 0.9);
    z-index: 1000;
}

.modal-content {
    background: #1a1a1a;
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 3px solid #1868e3;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
    color: #95a5a6;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #1868e3;
    transform: rotate(90deg);
}

.recipe-category {
    margin-bottom: 10px;
}

.recipe-category h4 {
    color: #7cb8ff;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.recipe-category h4:hover {
    background: #2a2a2a;
    padding-left: 10px;
}

.recipe-list {
    padding-left: 20px;
}

.dependency-chain {
    font-size: 0.9em;
    color: #7cb8ff;
    margin-left: 20px;
    margin-top: 5px;
}

.material-requirement {
    display: inline-block;
    margin-right: 15px;
    padding: 3px 8px;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid #1868e3;
}

.external-part {
    color: #f39c12;
    font-style: italic;
    font-weight: 500;
}

/* Special styling for the debug section */
#dashboard .card[style*="background-color: #ffebee"] {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%) !important;
    border: 2px solid #e74c3c !important;
    border-left: 5px solid #c0392b !important;
}

/* Animation for save status */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation for notifications */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1051c9 0%, #1868e3 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #013991 0%, #1051c9 100%);
}

/* Select option styling for dark mode */
option {
    background: #2a2a2a;
    color: #e0e0e0;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .tabs, button, .close-modal {
        display: none;
    }
    
    .card {
        break-inside: avoid;
        background: white;
        color: black;
    }
}