.mp-planner {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mp-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.mp-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
}

.mp-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.mp-participants-section {
    margin-bottom: 30px;
}

.mp-participants-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.mp-participant-count {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.mp-participants {
    margin-bottom: 15px;
}

.mp-participant-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.mp-participant-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 15px;
}

.mp-field-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.mp-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-field-group input[type="text"],
.mp-field-group input[type="time"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mp-field-group input[type="text"]:focus,
.mp-field-group input[type="time"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.mp-tz-search {
    position: relative;
    z-index: 2;
}

.mp-tz-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mp-tz-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    outline: none;
}

.mp-tz-option:hover,
.mp-tz-option:focus,
.mp-tz-option[aria-selected="true"] {
    background-color: #e3f2fd;
}

.mp-tz-option:focus {
    outline: 2px solid #2196F3;
    outline-offset: -2px;
}

.mp-tz-option strong {
    display: block;
    color: #333;
    font-size: 14px;
}

.mp-tz-offset {
    float: right;
    color: #666;
    font-size: 12px;
}

.mp-no-results {
    padding: 10px 12px;
    color: #999;
    font-style: italic;
}

.mp-tz-display {
    margin-top: 5px;
    padding: 6px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    min-height: 32px;
}

.mp-work-hours .mp-hours-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-work-hours .mp-hours-inputs span {
    color: #666;
    font-size: 13px;
}

.mp-work-hours input[type="time"] {
    flex: 1;
}

.mp-remove {
    padding: 8px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
}

.mp-remove:hover {
    background: #d32f2f;
}

.mp-remove .mp-icon {
    font-size: 18px;
}

.mp-add-participant {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-add-participant:hover {
    background: #45a049;
}

.mp-add-participant .mp-icon {
    font-size: 20px;
}

.mp-controls {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.mp-controls h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.mp-control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.mp-control-group {
    display: flex;
    flex-direction: column;
}

.mp-control-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.mp-control-group input[type="date"],
.mp-control-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

.mp-control-group input[type="date"]:focus,
.mp-control-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.mp-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mp-btn-primary,
.mp-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-btn-primary {
    background: #2196F3;
    color: white;
}

.mp-btn-primary:hover {
    background: #1976D2;
}

.mp-btn-secondary {
    background: #757575;
    color: white;
}

.mp-btn-secondary:hover {
    background: #616161;
}

.mp-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.mp-results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.mp-results-info {
    margin-bottom: 20px;
}

.mp-success {
    padding: 12px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

.mp-no-results {
    padding: 12px 16px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 4px;
    border-left: 4px solid #ff9800;
}

.mp-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mp-view-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.mp-view-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.mp-slot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mp-slot-item {
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.mp-slot-item:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.mp-slot-item.mp-slot-selected {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.mp-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.mp-slot-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.mp-slot-score {
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976D2;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.mp-dst-badge {
    padding: 4px 12px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
}

.mp-slot-utc {
    margin-bottom: 15px;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.mp-slot-participants {
    margin-bottom: 15px;
}

.mp-participant-time {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #fafafa;
    border-radius: 4px;
    font-size: 14px;
}

.mp-participant-name {
    font-weight: 600;
    color: #333;
}

.mp-participant-local {
    color: #666;
}

.mp-select-slot {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
}

.mp-select-slot:hover {
    background: #45a049;
}

.mp-timeline {
    overflow-x: auto;
}

.mp-timeline-grid {
    min-width: 600px;
}

.mp-timeline-header {
    display: flex;
    margin-bottom: 10px;
    font-weight: 600;
    background: white;
    border-radius: 4px;
    padding: 10px;
}

.mp-timeline-label {
    flex: 0 0 200px;
    padding: 8px;
    font-size: 13px;
    color: #333;
}

.mp-timeline-slot-header {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: #333;
}

.mp-timeline-row {
    display: flex;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
}

.mp-timeline-row .mp-timeline-label {
    background: #f5f5f5;
    border-radius: 4px 0 0 4px;
}

.mp-timeline-cell {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-left: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.mp-timeline-cell small {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 4px;
}

.mp-export-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.mp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.mp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: mp-spin 1s linear infinite;
}

@keyframes mp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mp-loading p {
    margin-top: 20px;
    color: #333;
    font-size: 16px;
}

.mp-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    border-left: 4px solid;
}

.mp-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #4CAF50;
}

.mp-message-error {
    background: #ffebee;
    color: #c62828;
    border-color: #f44336;
}

.mp-message-info {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #2196F3;
}

.mp-saved-groups-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.mp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mp-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mp-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.mp-saved-groups-list {
    margin-bottom: 20px;
}

.mp-saved-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.mp-group-info strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.mp-group-info small {
    color: #666;
    font-size: 13px;
}

.mp-group-actions {
    display: flex;
    gap: 8px;
}

.mp-load-group-btn,
.mp-delete-group-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.mp-load-group-btn {
    background: #4CAF50;
    color: white;
}

.mp-load-group-btn:hover {
    background: #45a049;
}

.mp-delete-group-btn {
    background: #f44336;
    color: white;
}

.mp-delete-group-btn:hover {
    background: #d32f2f;
}

.mp-modal-close {
    padding: 10px 24px;
    background: #757575;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.mp-modal-close:hover {
    background: #616161;
}

@media (max-width: 768px) {
    .mp-participant-fields {
        grid-template-columns: 1fr;
    }
    
    .mp-control-row {
        grid-template-columns: 1fr;
    }
    
    .mp-participant-row {
        flex-direction: column;
    }
    
    .mp-action-buttons {
        flex-direction: column;
    }
    
    .mp-btn-primary,
    .mp-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .mp-export-section {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

input:focus,
select:focus,
button:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

button:focus:not(:focus-visible) {
    outline: none;
}
