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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: #1f2937;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.community-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    cursor: pointer;
}

.dropdown-arrow {
    color: #6b7280;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    width: 240px;
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.search-input:focus {
    border-color: #3b82f6;
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    z-index: 1;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.icon-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Thin Left Sidebar */
.thin-sidebar {
    width: 64px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    top: 64px;
    height: calc(100vh - 64px);
    z-index: 999;
}

.thin-sidebar-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thin-sidebar-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Main Content */
.main-content {
    margin-left: 64px; /* Only thin sidebar width */
    flex: 1;
    padding: 24px 32px;
    max-width: none;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.events-header h1 {
    font-size: 28px;
    font-weight: 600;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-controls {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.view-btn.active {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.public-dropdown {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
}

.public-dropdown:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.new-event-btn {
    background: #374151;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-event-btn:hover {
    background: #1f2937;
}

.more-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s ease;
}

.more-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-title h2 {
    font-size: 20px;
    font-weight: 500;
}

.calendar-arrows {
    display: flex;
    gap: 8px;
}

.prev-month{
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 12px;
    transition: all 0.2s ease;
}

.next-month{
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 12px;
    transition: all 0.2s ease;
}
.nav-arrow:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Calendar */
.calendar-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.day-header {
    padding: 16px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 120px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    position: relative;
    cursor: pointer;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.other-month {
    color: #d1d5db;
    background: #fafafa;
}

.calendar-day.today {
    background: #dbeafe;
}

.day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.day-number.today {
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.calendar-day:hover {
    background: #f9fafb;
}

.calendar-day.other-month:hover {
    background: #f5f5f5;
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.chat-button i {
    color: white;
    font-size: 20px;
}

.chat-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 24px;
    }
    
    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .search-container {
        display: none;
    }
    
    .thin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
}

.sparkle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sparkle-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: scale(1.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: white;
    border-radius: 8px;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.modal-content {
    padding: 20px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
}

.modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.dropdown-section {
    margin-bottom: 16px;
}

.dropdown-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown.selected {
    color: #10b981;
}

.host-info label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

.host-details {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.host-details img {
    border-radius: 50%;
}

.datetime-section {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.date-input {
    flex: 1;
}

.date-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.time-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-input {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.time-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.repeats-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

.repeats-option {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.repeats-option.selected {
    color: #10b981;
}

.radio-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-option.selected {
    color: #10b981;
}

.radio-circle {
    width: 16px;
    height: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
}

.radio-option.selected .radio-circle {
    border-color: #10b981;
    background-color: #10b981;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
}

.create-btn {
    padding: 8px 16px;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Calendar Event Block */
.calendar-day .event-block {
    background-color: #3b82f6;
    color: white;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* Dropdown Options */
.dropdown-options {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: 37%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.dropdown-option {
    padding: 10px;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #f9fafb;
}

.dropdown-options.multi-select {
    padding: 8px;
}

.dropdown-options.multi-select .dropdown-option {
    padding: 6px 8px;
    display: flex;
    align-items: center;
}

.dropdown-options.multi-select input[type="checkbox"] {
    margin-right: 8px;
}

/* Time Input Select */
.time-input select {
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-left: 4px;
}

/* Active dropdown */
.dropdown.active + .dropdown-options {
    display: block;
}

/* Event Modal Styles */
.event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.event-modal {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.event-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.close-event-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.event-modal-body {
    padding: 20px;
}

.event-info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.event-info-row i {
    color: #4f46e5;
    font-size: 1.2rem;
    margin-top: 3px;
}

.event-info-label {
    margin: 0 0 4px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.event-info-row p:last-child {
    margin: 0;
    color: #1f2937;
    font-weight: 500;
}

.event-description {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.event-description h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.event-description p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.event-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.event-modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.event-modal-btn.secondary {
    background-color: white;
    border-color: #d1d5db;
    color: #374151;
}

.event-modal-btn.primary {
    background-color: #4f46e5;
    color: white;
}

.event-modal-btn.primary:hover {
    background-color: #4338ca;
}

.event-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.event-modal-btn.survey {
    background-color: #6b7280; /* Gray color */
    color: white;
}

.event-modal-btn.survey:hover {
    background-color: #4b5563; /* Darker gray */
}


.select {
    color: #4b5563;
    font-size: 13px;
    margin-bottom: 10px;
}

.dropdown {
    margin-bottom: 10px;
}