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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Tabs styling */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
}

.tab-btn.active {
    background-color: white;
    border-bottom: 2px solid white;
    font-weight: bold;
    position: relative;
    top: 1px;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* AI Event Creator Styling */
.ai-event-creator {
    padding: 15px 0;
}

.ai-input-section {
    margin-bottom: 30px;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.input-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.generate-btn {
    padding: 10px 20px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.generate-btn:hover {
    background-color: #3367d6;
}

.download-btn {
    padding: 10px 20px;
    background-color: #0f9d58;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.download-btn:hover {
    background-color: #0b8043;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #4285f4;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

#loading-indicator {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

.ai-result-section {
    margin-top: 20px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

label {
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="file"] {
    padding: 10px;
}

.results-section {
    margin-top: 30px;
}

.hidden {
    display: none;
}

.table-container {
    overflow-x: auto;
}

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

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

.no-events {
    text-align: center;
    padding: 20px;
    color: #666;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f7f7f7;
    border-radius: 6px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range input {
    flex: 1;
    min-width: 130px;
}

.date-range span {
    font-size: 14px;
    color: #666;
}

.duration-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.duration-filter select,
.duration-filter input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.duration-filter input {
    width: 80px;
}

.duration-filter select:first-child {
    min-width: 120px;
}

.duration-filter select:last-child {
    min-width: 100px;
}

button {
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-end;
    margin-top: auto;
}

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

#clear-filters {
    background-color: #f44336;
}

#clear-filters:hover {
    background-color: #d32f2f;
}

.export-btn {
    background-color: #0f9d58;
    margin-left: auto;
}

.export-btn:hover {
    background-color: #0b8043;
}

.add-to-gcal-btn {
    background-color: #4285f4;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    white-space: nowrap;
}

.add-to-gcal-btn:hover {
    background-color: #3367d6;
}

.filtered-row {
    display: none;
}