.ff-calendar-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ff-calendar-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.ff-calendar-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.ff-calendar-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.ff-calendar-filters form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.ff-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ff-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.ff-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 180px;
    cursor: pointer;
}

.ff-filter-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.ff-filter-btn,
.ff-reset-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.ff-filter-btn {
    background: #4CAF50;
    color: white;
    border: none;
}

.ff-filter-btn:hover {
    background: #45a049;
}

.ff-reset-btn {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.ff-reset-btn:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.ff-calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ff-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.ff-impact-high,
.ff-impact-medium,
.ff-impact-low {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ff-impact-high {
    background-color: #d94448;
}

.ff-impact-medium {
    background-color: #ff9800;
}

.ff-impact-low {
    background-color: #ffc107;
}

.ff-calendar-table {
    overflow-x: auto;
}

.ff-calendar-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ff-calendar-table thead {
    background-color: #f5f5f5;
}

.ff-calendar-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.ff-calendar-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.ff-date-row td {
    background-color: #fafafa;
    font-weight: 600;
    color: #444;
    padding: 8px;
}

.ff-event-row:hover {
    background-color: #f9f9f9;
}

.ff-no-events {
    text-align: center;
    padding: 30px !important;
    color: #999;
    font-style: italic;
}

.ff-calendar-footer {
    margin-top: 10px;
    text-align: right;
    color: #999;
    font-size: 12px;
}

.ff-calendar-error {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .ff-calendar-table table {
        font-size: 12px;
    }
    
    .ff-calendar-table th,
    .ff-calendar-table td {
        padding: 8px 4px;
    }
    
    .ff-calendar-legend {
        font-size: 12px;
    }
}