/* TruckU Main Styles - Orange Theme */

/* Import Exo 2 for a modern, geometric sans-serif look */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Exo 2', 'Exo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #E67E00 0%, #FF9500 50%, #E67E00 100%);
    min-height: 100vh;
    color: #333;
}

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

.header {
    background: linear-gradient(45deg, #E67E00, #FF9500);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.logo {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

    h1 {
    background: linear-gradient(45deg, #ffffff, #FFD4A3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

    .dashboard-header h1 {
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    color: white;
}

.btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #E67E00, #FF9500);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(230, 126, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 126, 0, 0.4);
    background: linear-gradient(45deg, #FF9500, #E67E00);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #8a9099);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #8a9099, #9ca3ab);
}

.card {
    background: #EBEBEB;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #E67E00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-radius: 8px 0 0 8px;
    border-right: 0;
    flex: 1;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    min-width: 45px;
    justify-content: center;
}

.input-group .form-control:focus + .input-group-addon {
    border-color: #E67E00;
}

.input-group-addon:hover {
    background: #e9ecef;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #E67E00;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b3d9ff;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, #E67E00 0%, #FFB84D 100%);
    color: white;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dashboard-tab {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.dashboard-tab.active {
    background: #E67E00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

/* Job Cards */
.job-card {
    background: #EBEBEB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #E67E00;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.2);
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #E67E00;
    margin-bottom: 10px;
}

.job-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

/* Status Badges */
.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.status-assigned {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.status-in-progress {
    background: linear-gradient(45deg, #fd7e14, #e55a00);
    color: white;
}

.status-completed {
    background: linear-gradient(45deg, #6f42c1, #553abb);
    color: white;
}

.status-cancelled {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

/* Bid Cards */
.bid-card {
    background: #EBEBEB;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #E67E00;
    transition: all 0.3s ease;
}

.bid-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* File Upload Styles */
.file-upload-container {
    border: 2px dashed #E67E00;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff8f0;
}

.file-upload-container:hover {
    border-color: #FF9500;
    background: #fff5e6;
}

.file-upload-container.dragover {
    border-color: #E67E00;
    background: #ffe4b3;
    transform: scale(1.02);
}

/* Chart Styles */
.chart-container {
    background: #EBEBEB;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.chart-canvas {
    max-width: 100%;
    height: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
        margin: 8px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        padding: 20px !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .status-badge {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
        margin-bottom: 20px !important;
    }
    
    .logo {
        font-size: 3rem !important;
        margin: 15px 0 !important;
    }
    
    .hero-container h1 {
        font-size: 2rem !important;
        margin: 15px 0 !important;
    }
    
    .hero-container p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }
    
    .features {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        margin: 25px 0 !important;
    }
    
    .feature {
        padding: 15px !important;
        text-align: center !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
    
    .feature h3 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .feature p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    .buttons {
        margin: 25px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .buttons .btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
    
    .header {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 15px !important;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem !important;
    }
    
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .dashboard-tab {
        padding: 18px !important;
        margin: 5px 0 !important;
        font-size: 1rem !important;
    }
    
    .job-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
