/* Modern Pickup Module Styles */

.pickup-module {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.pickup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pickup-header h3 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.pickup-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 1.1em;
    color: white;
}

.pickup-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    color: #333;
    margin: 0;
}

.pickup-table th {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.pickup-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

.pickup-table tr:hover td {
    background-color: #f8f9fa;
}

.pickup-table tr.container-row {
    background-color: #e3f2fd;
}

.pickup-table tr.container-row:hover td {
    background-color: #bbdefb;
}

/* Date column styling */
.pickup-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    min-width: 80px;
}

/* Region/Description column */
.pickup-region {
    max-width: 250px;
}

.pickup-region a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pickup-region a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.pickup-route {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Status indicators */
.status-indicator {
    text-align: center;
    padding: 8px;
}

.status-indicator img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pickup-icon {
    text-align: center;
    padding: 8px;
}

.pickup-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.pickup-icon a:hover img {
    transform: scale(1.1);
}

/* Progress bar styling */
.capacity-progress {
    text-align: center;
    padding: 8px;
    min-width: 120px;
}

.capacity-progress progress {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    border: none;
    background-color: #e0e0e0;
    overflow: hidden;
}

.capacity-progress progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
}

.capacity-progress progress::-webkit-progress-value {
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.capacity-progress progress::-moz-progress-bar {
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 10px;
}

/* Capacity text */
.capacity-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .pickup-module {
        margin: 10px;
        border-radius: 8px;
    }
    
    .pickup-header {
        padding: 15px;
    }
    
    .pickup-header h3 {
        font-size: 1.5em;
    }
    
    .pickup-table th,
    .pickup-table td {
        padding: 10px 8px;
        font-size: 0.9em;
    }
    
    .pickup-region {
        max-width: 180px;
    }
    
    .capacity-progress {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .pickup-table {
        font-size: 0.85em;
    }
    
    .pickup-table th,
    .pickup-table td {
        padding: 8px 6px;
    }
    
    .pickup-icon img {
        width: 24px;
        height: 24px;
    }
    
    .status-indicator img {
        width: 20px;
        height: 20px;
    }
}

/* Pickup Request Modal Styles */
.pickup-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.pickup-modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pickup-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pickup-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.pickup-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pickup-close:hover {
    opacity: 1;
}

.pickup-modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    min-height: 48px;
    line-height: 1.4;
}

.form-group select {
    height: 48px;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancel,
.btn-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pickup-modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .pickup-modal-header,
    .pickup-modal-body {
        padding: 20px;
    }
    
    .form-group select,
    .form-group input[type="date"] {
        height: 52px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        margin: 5px 0;
    }
}