/* Staff Roster Pro - Frontend Styles */

.srp-my-roster-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.srp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2c3e50;
}

.srp-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
}

.srp-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Calendar Export Button */
.srp-export-calendar-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.srp-export-calendar-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.srp-export-calendar-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Notifications */
.srp-notifications {
    position: relative;
}

.srp-notifications-toggle {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.srp-notifications-toggle:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.srp-notifications-toggle .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin: 0;
}

.srp-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #e74c3c;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.srp-notifications-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.srp-notifications-dropdown h4 {
    margin: 0;
    padding: 15px;
    background: #2c3e50;
    color: white;
    border-radius: 8px 8px 0 0;
}

.srp-notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

.srp-notification-item:hover {
    background: #f8f9fa;
}

.srp-notification-item:last-child {
    border-bottom: none;
}

.srp-notification-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.srp-notification-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.srp-notification-item small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

/* Calendar view */
.srp-shifts-calendar {
    margin-bottom: 40px;
}

.srp-shifts-calendar h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
}

.srp-calendar-view {
    display: grid;
    gap: 20px;
}

/* Day card */
.srp-day-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.srp-day-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.srp-day-card.srp-today {
    border: 2px solid #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.srp-day-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.srp-today .srp-day-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.srp-day-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.srp-today-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.srp-day-shifts {
    padding: 20px;
}

/* Shift card */
.srp-shift-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.srp-shift-card:last-child {
    margin-bottom: 0;
}

.srp-shift-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.srp-shift-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.srp-shift-type {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

.srp-shift-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.srp-shift-time .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.srp-shift-notes {
    background: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: start;
    gap: 8px;
}

.srp-shift-notes .dashicons {
    color: #3498db;
    flex-shrink: 0;
}

.srp-shift-trainer {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.srp-shift-trainer .dashicons {
    color: #4caf50;
    flex-shrink: 0;
}

.srp-shift-actions {
    margin-top: 12px;
}

.srp-request-swap-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.srp-request-swap-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Empty state */
.srp-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.srp-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.srp-empty-state p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Swap requests section */
.srp-swap-requests-section {
    margin-top: 40px;
}

.srp-swap-requests-section h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
}

.srp-swap-requests-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.srp-swap-requests-table thead {
    background: #34495e;
    color: white;
}

.srp-swap-requests-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.srp-swap-requests-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.srp-swap-requests-table tbody tr:last-child td {
    border-bottom: none;
}

.srp-swap-requests-table tbody tr:hover {
    background: #f8f9fa;
}

.srp-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.srp-status-pending {
    background: #fff3cd;
    color: #856404;
}

.srp-status-approved {
    background: #d4edda;
    color: #155724;
}

.srp-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Modal */
.srp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

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

.srp-modal-content {
    position: relative;
    background: white;
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.srp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.srp-modal-close:hover {
    color: #333;
}

.srp-modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
}

.srp-modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.srp-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.srp-modal-content button {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .srp-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .srp-header h2 {
        font-size: 22px;
    }
    
    .srp-shift-info {
        flex-direction: column;
        align-items: start;
        gap: 8px;
    }
    
    .srp-swap-requests-table {
        font-size: 14px;
    }
    
    .srp-swap-requests-table th,
    .srp-swap-requests-table td {
        padding: 10px;
    }
    
    .srp-open-shifts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Open Shifts Section */
.srp-open-shifts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.srp-open-shifts-section h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 10px;
}

.srp-open-shifts-section .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.srp-open-shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.srp-open-shift-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.srp-open-shift-card.srp-shift-full {
    opacity: 0.7;
    background: #f8f9fa;
}

.srp-open-shift-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.srp-open-shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.srp-open-shift-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.srp-slots-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.srp-slots-badge.srp-full {
    background: #ffebee;
    color: #c62828;
}

.srp-approved-list {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 3px solid #2196f3;
}

.srp-approved-list small {
    color: #1976d2;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.srp-approved-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: white;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
}

.srp-approved-user:last-child {
    margin-bottom: 0;
}

.srp-approved-user .dashicons {
    color: #4caf50;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.srp-approved-user.srp-is-me {
    background: #c8e6c9;
    font-weight: 600;
}

.srp-me-badge {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

.srp-open-shift-details {
    margin-bottom: 15px;
}

.srp-open-shift-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
}

.srp-open-shift-details .dashicons {
    color: #3498db;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.srp-open-shift-notes {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-style: italic;
}

.srp-open-shift-actions {
    margin-top: 15px;
}

.srp-open-shift-actions button {
    width: 100%;
    text-align: center;
}

/* PWA Section */
.srp-pwa-section {
    margin-top: 50px;
}

.srp-pwa-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.srp-pwa-box h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.srp-pwa-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
}

.srp-install-app-btn {
    background: white !important;
    color: #667eea !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.srp-install-app-btn:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.srp-install-app-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.srp-manual-install {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.srp-manual-install summary {
    color: white;
    text-align: center;
    padding: 10px;
}

.srp-manual-install summary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.srp-manual-install h4 {
    color: #2c3e50;
    margin: 10px 0;
}

.srp-manual-install ol {
    color: #555;
    line-height: 1.8;
}
