/* FestOpsPro Plugin Styles */

/* Default brand color — overridden at runtime by FestOpsPro Settings if configured */
:root {
    /* Brand colors */
    --fop-brand-color: #990100;
    --volunteer-general-color: #990100;
    --volunteer-music-production-color: #990100;
    --volunteer-kitchen-green-room-color: #990100;
    --volunteer-clinic-color: #990100;

    /* Typography scale — all font sizes flow from these variables */
    --fop-font-size-xs:   0.75rem;   /* 12px @ 16px root — tiny UI (tooltips) */
    --fop-font-size-sm:   0.875rem;  /* 14px @ 16px root — labels, inputs, buttons */
    --fop-font-size-base: 1rem;      /* 16px @ 16px root — body / inherited */
    --fop-font-size-md:   1.125rem;  /* 18px @ 16px root — filter headers */
    --fop-font-size-lg:   1.25rem;   /* 20px @ 16px root — shift title */
    --fop-font-size-xl:   1.5rem;    /* 24px @ 16px root — date headers, notice headings */
}

.volunteer-grid-container {
    margin-bottom: 40px;
}

/* Legacy search box selector for backward compatibility */
#shiftSearchBox {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: var(--fop-font-size-sm);
    box-sizing: border-box;
}

#shiftSearchBox:focus {
    outline: none;
    border-color: var(--fop-brand-color);
    box-shadow: 0 0 0 2px rgba(153, 1, 0, 0.1);
}

.shiftFilters {
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

/* Filter group containers */
.filter-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.filter-group:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Filter options container */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

/* Individual filter option styling */
.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.filter-option:hover {
    background-color: #e9ecef;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-label {
    font-size: var(--fop-font-size-sm);
    color: #495057;
    cursor: pointer;
}

/* Search input styling */
.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: var(--fop-font-size-sm);
    margin-top: 10px;
}

.search-input:focus {
    outline: none;
    border-color: var(--fop-brand-color);
    box-shadow: 0 0 0 2px rgba(153, 1, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .shiftFilters {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .filter-group {
        max-width: 100%;
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
    
    .filter-options {
        align-items: center;
    }
    
    .filter-option {
        justify-content: center;
    }
    
    .search-input,
    #shiftSearchBox {
        text-align: center;
        max-width: 300px;
        margin: 10px auto 0 auto;
    }
}

.volunteer-welcome-message {
    text-align: center;
}

.record {
    display: none;
    /* Initially hide all records */
}

.record {
    display: flex;
    flex-direction: column;
    margin: auto;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-color: var(--volunteer-general-color);
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin-bottom: -1px;
    /* border-radius: 10px; */
}

.record.unassigned {
    margin-top: 10px;
    margin-bottom: 20px;
    /* border-color: grey; */
}

.shift-summary {
    font-size: var(--fop-font-size-lg);
    font-weight: bold;
}

.shift-address {
    margin-bottom: 10px;
}

.shift-description {
    margin-bottom: 10px;
}

.shift-signup-button {
    /* display: inline-block; */
    padding: 10px 25px;
    /* margin: 5px -15px -15px -15px; */
    margin-top: 5px;
    background-color: var(--fop-brand-color);
    color: white;
    text-align: center;
    font-size: var(--fop-font-size-sm);
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    letter-spacing: 1.5px;
}

.shift-signup-button:hover,
.shift-signup-button:focus {
    background-color: var(--fop-brand-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.shift-tooltip-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 1rem;
    font-size: var(--fop-font-size-xs);
    cursor: help;
    margin-left: 5px;
}

.shift-tooltip-icon:hover {
    background-color: #0056b3;
}

.shift-field-hide {
    display: none;
}

.view-shift {
    margin-top: 10px;
    text-align: right;
}

.date-group-header {
    color: var(--fop-brand-color);
    font-size: var(--fop-font-size-xl);
    font-weight: bold;
    margin: 30px 0 20px 0;
    padding: 10px 0;
    border-bottom: 2px solid var(--fop-brand-color);
    clear: both;
}

.date-group-header:first-of-type {
    margin-top: 20px;
}

/* Filter header styles */
.filter-header {
    font-size: var(--fop-font-size-md);
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--fop-brand-color);
    border-bottom: 2px solid var(--fop-brand-color);
    padding-bottom: 5px;
    text-align: center;
}

.filter-date-header {
    /* Specific styles for date filter header */
}

.filter-type-header {
    /* Specific styles for type filter header */
}

.filter-status-header {
    /* Specific styles for status filter header */
}

.filter-search-header {
    /* Specific styles for search filter header */
}

/* Error message styling */
.volunteer-error {
    background-color: #fff2cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: 500;
}

/* All shifts filled message styling */
.all-shifts-filled-message {
    margin: 20px 0;
    text-align: center;
    display: none; /* Initially hidden */
}

.volunteer-filled-notice {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    max-width: 600px;
    margin: 0 auto;
}

.volunteer-filled-notice h3 {
    color: #155724;
    margin: 0 0 15px 0;
    font-size: var(--fop-font-size-xl);
    font-weight: bold;
}

.volunteer-filled-notice p {
    color: #155724;
    margin: 10px 0;
    font-size: var(--fop-font-size-md);
    line-height: 1.5;
}

.volunteer-filled-notice p:last-child {
    margin-bottom: 0;
}

.volunteer-filled-notice a {
    color: var(--fop-brand-color);
    font-weight: bold;
    text-decoration: underline;
}

.volunteer-filled-notice a:hover {
    color: #721c24;
    text-decoration: none;
}

/* Responsive styling for filled message */
@media (max-width: 768px) {
    .volunteer-filled-notice {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .volunteer-filled-notice h3 {
        font-size: var(--fop-font-size-lg);
    }
    
    .volunteer-filled-notice p {
        font-size: var(--fop-font-size-base);
    }
}
