/**
 * Public styles for the Dreamboys Rota plugin
 * Optimized for dark backgrounds
 */

/* General styles */
.dreamboys-rota-public {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #ffffff;
}

/* Instructions styling */
.rota-instructions {
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.instruction-text {
    color: #FE46DC;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.dreamboys-rota-public h2 {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff46dc;
    color: #ff46dc;
    text-shadow: 0 0 10px rgba(255, 70, 220, 0.5);
}

.dreamboys-rota-public h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ff46dc;
    text-shadow: 0 0 8px rgba(255, 70, 220, 0.4);
}

/* Location selector */
.location-selector {
    margin-bottom: 30px;
}

.location-filter-form select {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 70, 220, 0.5);
}

/* Date range selector */
.date-range-selector {
    margin-bottom: 30px;
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid #ff46dc;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(255, 70, 220, 0.3);
}

.date-range-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.date-field {
    margin-right: 20px;
    margin-bottom: 10px;
}

.date-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

.date-field input {
    width: 150px;
    padding: 8px;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 70, 220, 0.5);
}

.date-submit {
    margin-bottom: 10px;
}

/* Debug styles */
.debug-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 5px;
}

.debug-data {
    color: #0f0;
    font-family: monospace;
    font-size: 14px;
}

.debug-data pre {
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 10px;
    padding: 10px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 3px;
    max-height: 300px;
    overflow-y: auto;
}

/* Shows accordion */
.shows-accordion {
    margin-top: 20px;
}

.show-item {
    margin-bottom: 15px;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 70, 220, 0.3);
}

.show-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-header:hover {
    background: rgba(60, 60, 60, 0.8);
    box-shadow: 0 0 15px rgba(255, 70, 220, 0.5) inset;
}

.show-item.open .show-header {
    background: rgba(80, 80, 80, 0.8);
    border-bottom: 1px solid #ff46dc;
}

.show-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ff46dc;
    text-shadow: 0 0 5px rgba(255, 70, 220, 0.5);
    display: flex;
    align-items: center;
}

.show-status {
    margin-left: auto;
}

.status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.status-set {
    background: rgba(30, 126, 30, 0.8);
    color: #ffffff;
    border: 1px solid #2ecc71;
}

.status-not-set {
    background: rgba(196, 30, 30, 0.8);
    color: #ffffff;
    border: 1px solid #e74c3c;
}

/* Cancelled show styles */
.show-cancelled {
    background: rgba(80, 0, 0, 0.8) !important;
}

.cancelled-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    background: rgba(196, 30, 30, 0.8);
    color: #ffffff;
    border: 1px solid #e74c3c;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Disabled form styles */
.rota-form.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.rota-form.disabled input[type="checkbox"],
.rota-form.disabled button {
    cursor: not-allowed;
}

.notice.notice-error.inline {
    background-color: rgba(196, 30, 30, 0.2);
    border-left: 4px solid #e74c3c;
    padding: 12px;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(196, 30, 30, 0.4);
    border-radius: 3px;
}

.show-content {
    padding: 20px;
    background: rgba(20, 20, 20, 0.8);
    color: #ffffff;
}

/* Rota form */
.rota-roles {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.rota-role {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.rota-role h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* Legacy multi-select style - kept for backward compatibility */
.rota-select {
    width: 100%;
    min-height: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* New checkbox-based staff selection */
.staff-checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    background: rgba(30, 30, 30, 0.8);
    padding: 5px;
    box-shadow: 0 0 8px rgba(255, 70, 220, 0.3);
}

.staff-checkbox-item {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 70, 220, 0.3);
    display: flex;
    align-items: center;
}

.staff-checkbox-item:last-child {
    border-bottom: none;
}

.staff-checkbox-item:hover {
    background-color: rgba(255, 70, 220, 0.15);
}

.staff-checkbox-item label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
}

.staff-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    min-width: 16px;
    min-height: 16px;
    accent-color: #ff46dc;
}

.staff-name {
    flex-grow: 1;
}

.staff-stage-name {
    color: #ff46dc;
    font-style: italic;
    margin-left: 5px;
    text-shadow: 0 0 5px rgba(255, 70, 220, 0.5);
}

.rota-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.save-message {
    margin-left: 15px;
}

.save-message .error, .copy-message .error {
    color: #d32f2f;
    font-weight: bold;
}

.save-message .success, .copy-message .success {
    color: #388e3c;
    font-weight: bold;
}

.copy-message .loading {
    color: #0277bd;
    font-style: italic;
}

/* Modal dialog styles */
.dreamboys-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dreamboys-modal .modal-content {
    background-color: rgba(30, 30, 30, 0.95);
    border: 2px solid #ff46dc;
    border-radius: 5px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(255, 70, 220, 0.5);
}

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

.dreamboys-modal .button {
    padding: 8px 15px;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    background-color: rgba(40, 40, 40, 0.8);
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(255, 70, 220, 0.3);
}

.dreamboys-modal .button:hover {
    background-color: rgba(60, 60, 60, 0.8);
    box-shadow: 0 0 12px rgba(255, 70, 220, 0.5);
}

.dreamboys-modal .button-primary {
    background-color: rgba(255, 70, 220, 0.2);
    border: 1px solid #ff46dc;
}

.dreamboys-modal .button-primary:hover {
    background-color: rgba(255, 70, 220, 0.4);
}

.dreamboys-modal h3 {
    margin-top: 0;
    color: #ff46dc;
    text-shadow: 0 0 8px rgba(255, 70, 220, 0.4);
    font-size: 24px;
}

.dreamboys-modal p {
    color: #ffffff;
    margin-bottom: 15px;
}

/* Copy rota modal specific styles */
#copy-rota-modal select {
    width: 100%;
    margin: 15px 0;
    padding: 8px;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 70, 220, 0.5);
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid #ff46dc;
    color: #ffffff;
    border-radius: 4px;
}

#copy-rota-modal .modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

#copy-rota-modal .error-details {
    margin-top: 10px;
    padding-left: 20px;
    color: #d32f2f;
}

.copy-from-previous {
    margin-right: 10px;
}

/* Button styling */
.dreamboys-rota-public .button {
    display: inline-block;
    padding: 8px 16px;
    background: #ff46dc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 70, 220, 0.5);
    text-shadow: 0 0 3px rgba(255, 70, 220, 0.5);
    margin-bottom: 10px;
}

.dreamboys-rota-public .button:hover {
    background: #d92db7;
    box-shadow: 0 0 15px rgba(255, 70, 220, 0.8);
}

/* Error message styling for double-booking */
.error-container {
    background-color: rgba(220, 50, 50, 0.2);
    border-left: 4px solid #dc3232;
    padding: 12px;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(220, 50, 50, 0.4);
    border-radius: 3px;
}

.error-main {
    color: #ff6b6b;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

.error-details {
    margin: 0;
    padding-left: 20px;
    color: #ffffff;
}

.error-details li {
    margin-bottom: 5px;
    color: #ffffff;
}

/* Warning message styling for scheduling conflicts */
.warning-container {
    background-color: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    border-radius: 3px;
}

.copy-message .warning {
    color: #ffc107;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.warning-details {
    margin: 0;
    padding-left: 20px;
    color: #ffffff;
    list-style-type: disc;
}

.warning-details li {
    margin-bottom: 5px;
    color: #ffffff;
}

.warning-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Accordion content */
.dreamboys-rota .accordion-content {
    display: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 5px 5px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(255, 70, 220, 0.3);
}

/* Header and Logout Button */
.dreamboys-rota-public .dreamboys-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 70, 220, 0.3);
}

.dreamboys-rota-public .dreamboys-logout {
    margin-left: 20px;
}

.dreamboys-rota-public .dreamboys-logout-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ff46dc;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 70, 220, 0.3);
}

.dreamboys-rota-public .dreamboys-logout-button:hover {
    background-color: #ff46dc;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 70, 220, 0.7);
    text-shadow: none;
}

/* Drag Queen Booker specific styles */
.dreamboys-rota .drag-booker-section {
    border: 2px solid #ff46dc;
    border-radius: 5px;
    padding: 15px;
    background-color: rgba(255, 70, 220, 0.1);
    box-shadow: 0 0 15px rgba(255, 70, 220, 0.5);
}

.dreamboys-rota .drag-booker-section h5 {
    color: #ff46dc;
    text-shadow: 0 0 5px rgba(255, 70, 220, 0.7);
}

.dreamboys-rota .drag-booker-badge {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8em;
    background-color: #ff46dc;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    text-shadow: none;
}

.dreamboys-rota .description.highlight {
    color: #ff46dc;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 70, 220, 0.5);
    margin-bottom: 10px;
}

/* Password form styling */
.dreamboys-password-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #ff46dc;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 70, 220, 0.4);
}

.dreamboys-password-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff46dc;
    color: #ff46dc;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 70, 220, 0.5);
}

.dreamboys-password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

.dreamboys-password-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ff46dc;
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 70, 220, 0.3) inset;
}

.dreamboys-password-form .button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    background: #ff46dc;
    box-shadow: 0 0 15px rgba(255, 70, 220, 0.5);
}

.dreamboys-error {
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #ffd5d5;
    border-left: 4px solid #c41e1e;
    color: #c41e1e;
    border-radius: 3px;
}

/* Hide logout success message */
.dreamboys-success {
    display: none !important;
}

/* jQuery UI Datepicker styling */
.ui-datepicker {
    background: rgba(40, 40, 40, 0.95) !important;
    border: 1px solid #ff46dc !important;
    border-radius: 4px !important;
    padding: 10px !important;
    box-shadow: 0 0 15px rgba(255, 70, 220, 0.5) !important;
    color: #ffffff !important;
    width: auto !important;
}

.ui-datepicker-header {
    background: rgba(40, 40, 40, 0.9) !important;
    border: 1px solid #ff46dc !important;
    border-radius: 3px !important;
    color: #ff46dc !important;
    padding: 8px 5px !important;
    margin-bottom: 8px !important;
}

.ui-datepicker-title {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 5px !important;
}

.ui-datepicker-month, .ui-datepicker-year {
    margin: 0 3px !important;
    padding: 4px !important;
    background: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid #ff46dc !important;
    border-radius: 3px !important;
    color: #ffffff !important;
    font-size: 11px !important;
    min-width: 70px !important;
    text-align: center !important;
}

.ui-datepicker-prev, .ui-datepicker-next {
    background: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid #ff46dc !important;
    border-radius: 3px !important;
    color: #ff46dc !important;
    cursor: pointer !important;
    padding: 2px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.ui-datepicker-prev {
    left: 5px !important;
}

.ui-datepicker-next {
    right: 5px !important;
}

.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
    background: rgba(255, 70, 220, 0.3) !important;
}

.ui-datepicker-calendar th {
    color: #ff46dc !important;
    padding: 5px !important;
}

.ui-datepicker-calendar td {
    padding: 2px !important;
}

.ui-datepicker-calendar a {
    text-align: center !important;
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(255, 70, 220, 0.3) !important;
    border-radius: 3px !important;
    color: #ffffff !important;
    padding: 5px !important;
    text-decoration: none !important;
}

.ui-datepicker-calendar a:hover {
    background: rgba(255, 70, 220, 0.3) !important;
}

.ui-datepicker-calendar .ui-state-active {
    background: #ff46dc !important;
    color: #000000 !important;
    font-weight: bold !important;
}

/* After Show Report Styles */
.recording-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #ff46dc;
    border-radius: 4px;
}

.recording-controls button {
    margin-right: 15px;
    margin-bottom: 10px;
}

.recording-timer {
    font-size: 18px;
    font-weight: bold;
    color: #ff46dc;
    margin: 0 15px;
    min-width: 60px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 70, 220, 0.5);
}

.recording-status {
    color: #ffffff;
    margin-left: 10px;
    font-style: italic;
}

.recording-status.recording {
    color: #ff4646;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.audio-preview {
    margin: 20px 0;
    padding: 15px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #ff46dc;
    border-radius: 4px;
}

.audio-preview audio {
    width: 100%;
    margin-top: 10px;
}

.report-transcription-section {
    margin: 20px 0;
}

.report-transcription-section textarea {
    width: 100%;
    padding: 10px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #ff46dc;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.report-message {
    margin-top: 15px;
}

.report-message .error {
    color: #ff6b6b;
    font-weight: bold;
}

.report-message .success {
    color: #4caf50;
    font-weight: bold;
}

.report-message .loading {
    color: #ff46dc;
    font-style: italic;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .date-range-fields {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-field {
        margin-right: 0;
    }
    
    .date-field input {
        width: 100%;
    }
    
    .rota-roles {
        flex-direction: column;
    }
    
    .rota-role {
        min-width: 100%;
    }
    
    /* Mobile-specific checkbox adjustments */
    .staff-checkbox-item {
        padding: 12px 10px; /* Larger touch target */
    }
    
    .staff-checkbox-item label {
        font-size: 16px; /* Larger text */
    }
    
    .staff-checkbox-item input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
        margin-right: 12px;
    }
    
    /* Mobile-specific recording controls */
    .recording-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recording-controls button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .recording-timer {
        margin: 10px 0;
    }
}
