:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --danger-color: #ea4335;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.date-display {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

.auth-section {
    margin-top: 10px;
}

.auth-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #3367d6;
}

.auth-status {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.dashboard {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
}

.calendar-section {
    flex: 5;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    height: 100%;
}

.calendar-day {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.day-header {
    font-weight: 500;
    font-size: 1.2em;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.events-list {
    flex: 1;
    overflow-y: auto;
}

.event-item {
    background: var(--light-gray);
    margin: 5px 0;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.event-time {
    font-weight: 500;
    color: var(--primary-color);
}

.travel-section {
    flex: 1;
    min-height: 150px;
}

.travel-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    height: 100%;
}

.travel-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.travel-route {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.travel-time {
    font-size: 1.5em;
    font-weight: 500;
    margin: 5px 0;
}

.travel-duration {
    font-size: 0.9em;
    color: #666;
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-grid,
    .travel-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .calendar-section,
    .travel-section {
        flex: none;
    }
}
