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

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

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #19446f;
    color: white;
    border-radius: 5px;
}

header h1 {
    margin-bottom: 10px;
}

.auth-section {
    margin-left: 80px;
    margin-right: 80px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.controls {
    width: 100%;
}

 .controls, .import-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.loading-section {
    width: 160px;
}

.import-controls {
    margin-top: 20px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #3860a2;
    color: white;
}

.btn-primary:hover {
    background-color: #264570;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

#authorize-button {
    background-color: #3860a2;
    color: white;
}

#signout-button {
    background-color: #dc3545;
    color: white;
}

#fetch-events {
    background-color: #28a745;
    color: white;
}

select {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.events-container {
    margin-top: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.event-item {
    border-bottom: 1px solid #eee;
    padding: 15px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.event-item:hover {
    background-color: #f8f9fa;
}

.event-checkbox {
    margin-right: 15px;
}

.event-details {
    flex-grow: 1;
}

.event-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.event-date, .event-time, .event-description {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.event-date {
    color: #3860a2;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3860a2;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-message {
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
}

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

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

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #6c757d;
    font-size: 0.9em;
}

footer a {
    color: #3860a2;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
