/* Event Manager Pro Frontend Styles */

/* Calendar Styles */
.emp-calendar-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
}

.emp-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.emp-calendar-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.emp-calendar-nav {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.emp-calendar-nav:hover {
    background: #005a87;
}

.emp-calendar-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.emp-calendar-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.emp-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.emp-calendar th {
    background: #f8f9fa;
    padding: 15px 5px;
    text-align: center;
    font-weight: bold;
    color: #666;
    border: 1px solid #e9ecef;
}

.emp-calendar td {
    border: 1px solid #e9ecef;
    vertical-align: top;
    height: 120px;
    width: 14.28%;
    position: relative;
}

.emp-calendar-day {
    padding: 8px;
    min-height: 100px;
    background: #fff;
}

.emp-calendar-day:hover {
    background: #f8f9fa;
}

.emp-calendar-empty {
    background: #f8f9fa;
}

.emp-today {
    background: #fff3cd !important;
}

.emp-has-events {
    background: #e8f4fd;
}

.emp-day-number {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.emp-day-events {
    font-size: 11px;
}

.emp-calendar-event {
    background: #0073aa;
    color: white;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 3px;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.emp-calendar-event a {
    color: white;
    text-decoration: none;
}

.emp-calendar-event:hover {
    background: #005a87;
}

.emp-calendar-event.emp-all-day {
    background: #28a745;
}

.emp-event-more {
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

/* Event List Styles */
.emp-event-list {
    display: grid;
    gap: 20px;
}

.emp-event-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.emp-event-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.emp-event-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.emp-event-title a {
    color: #333;
    text-decoration: none;
}

.emp-event-title a:hover {
    color: #0073aa;
}

.emp-event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
}

.emp-event-date,
.emp-event-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emp-meta-label {
    font-weight: bold;
    color: #333;
}

.emp-meta-value {
    color: #666;
}

.emp-event-excerpt {
    color: #666;
    line-height: 1.6;
}

.emp-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Upcoming Events Widget Style */
.emp-upcoming-events .emp-event-item {
    padding: 15px;
    margin-bottom: 15px;
}

.emp-upcoming-events .emp-event-title {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.emp-upcoming-events .emp-event-meta {
    font-size: 0.9em;
    gap: 5px;
}

/* Search Form Styles */
.emp-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.emp-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.emp-search-field {
    display: flex;
    flex-direction: column;
}

.emp-search-field label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.emp-search-field input,
.emp-search-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.emp-search-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.emp-search-submit:hover {
    background: #005a87;
}

/* Popup Styles */
.emp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emp-popup-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
}

.emp-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.emp-popup-close:hover {
    color: #333;
}

.emp-popup-body {
    padding: 40px 20px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emp-calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .emp-calendar-filters {
        justify-content: center;
    }
    
    .emp-calendar th,
    .emp-calendar td {
        padding: 5px 2px;
        font-size: 12px;
    }
    
    .emp-calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .emp-day-events {
        font-size: 10px;
    }
    
    .emp-search-fields {
        grid-template-columns: 1fr;
    }
    
    .emp-event-meta {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .emp-calendar {
        font-size: 11px;
    }
    
    .emp-calendar-day {
        min-height: 60px;
        padding: 3px;
    }
    
    .emp-day-number {
        font-size: 12px;
    }
    
    .emp-calendar-event {
        font-size: 9px;
        padding: 1px 2px;
    }
    
    .emp-popup-content {
        margin: 10px;
        max-height: 90vh;
    }
}

/* Print Styles */
@media print {
    .emp-calendar-nav,
    .emp-calendar-filters,
    .emp-search-form {
        display: none;
    }
    
    .emp-calendar {
        page-break-inside: avoid;
    }
    
    .emp-calendar-day {
        break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .emp-calendar-event {
        border: 2px solid white;
    }
    
    .emp-today {
        border: 3px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .emp-calendar-nav,
    .emp-event-item,
    .emp-search-submit {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .emp-calendar-wrapper,
    .emp-event-item,
    .emp-search-form {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .emp-calendar th {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .emp-calendar td {
        border-color: #4a5568;
    }
    
    .emp-calendar-day {
        background: #2d3748;
    }
    
    .emp-calendar-day:hover {
        background: #4a5568;
    }
    
    .emp-today {
        background: #744210 !important;
    }
    
    .emp-has-events {
        background: #2c5282;
    }
} 