:root {
    --jayypi-primary: #f39c12;
    --jayypi-secondary: #2c3e50;
    --jayypi-success: #27ae60;
    --jayypi-error: #e74c3c;
    --jayypi-bg: #f8f9fa;
    --jayypi-white: #ffffff;
    --jayypi-border: #ddd;
    --jayypi-radius: 8px;
    --jayypi-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.jayypi-dashboard {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--jayypi-bg);
    padding: 15px;
    border-radius: var(--jayypi-radius);
}

.jayypi-header {
    text-align: center;
    margin-bottom: 25px;
}

.jayypi-header h1 {
    color: var(--jayypi-secondary);
    margin: 0;
    font-size: 24px;
}

.jayypi-header p {
    color: #666;
    margin-top: 5px;
}

.jayypi-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
    background: #eee;
    padding: 5px;
    border-radius: var(--jayypi-radius);
}

.jayypi-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.jayypi-tab-btn.active {
    background: var(--jayypi-white);
    color: var(--jayypi-primary);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.jayypi-tab-content {
    display: none;
    background: var(--jayypi-white);
    padding: 20px;
    border-radius: var(--jayypi-radius);
    box-shadow: var(--jayypi-shadow);
}

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

.form-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--jayypi-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--jayypi-border);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.split {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.haul-row {
    background: #fdfdfd;
    border: 1px solid #ebebeb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--jayypi-primary);
}

.remove-row {
    background: var(--jayypi-error);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
}

.trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.btn-primary {
    background: var(--jayypi-secondary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--jayypi-radius);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-secondary {
    background: #eee;
    color: var(--jayypi-secondary);
    padding: 10px 20px;
    border: 1px dashed #ccc;
    border-radius: var(--jayypi-radius);
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
}

.totals-section {
    background: #fff8e1;
    padding: 15px;
    border-radius: var(--jayypi-radius);
}

.totals-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.total-item {
    text-align: center;
}

.total-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
}

.total-item span:not(.label) {
    font-size: 20px;
    font-weight: bold;
    color: var(--jayypi-secondary);
}

.total-item.highlight span:not(.label) {
    color: var(--jayypi-success);
}

#form-message, #profile-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.success { background: #d4edda; color: #155724; display: block !important; }
.error { background: #f8d7da; color: #721c24; display: block !important; }

/* Mobile adjustments */
@media (max-width: 600px) {
    .trip-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group.split {
        grid-template-columns: 1fr;
    }
}
