/* Volunteer Portal Styles */

/* Messages */
.vsm-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.vsm-message.vsm-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.vsm-message.vsm-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Portal Container */
.vsm-portal {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.vsm-portal h2 {
    margin-bottom: 20px;
    color: #333;
}

.vsm-portal h3 {
    margin-bottom: 15px;
    color: #555;
}

.vsm-portal h4 {
    margin-bottom: 10px;
    color: #666;
    font-size: 1.1em;
}

/* Event Info */
.vsm-event-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.vsm-event-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.vsm-event-info p {
    margin: 5px 0;
    color: #555;
}

/* Signup Details */
.vsm-signup-details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.vsm-detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.vsm-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.vsm-detail-row {
    display: flex;
    padding: 8px 0;
}

.vsm-detail-label {
    font-weight: 600;
    min-width: 150px;
    color: #555;
}

.vsm-detail-value {
    flex: 1;
    color: #333;
}

.vsm-detail-value.vsm-status-confirmed {
    color: #28a745;
    font-weight: 600;
}

.vsm-detail-value.vsm-status-pending {
    color: #ffc107;
    font-weight: 600;
}

.vsm-detail-value.vsm-status-cancelled {
    color: #dc3545;
    font-weight: 600;
}

.vsm-description {
    color: #666;
    line-height: 1.6;
}

/* Forms */
.vsm-form-group {
    margin-bottom: 20px;
}

.vsm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.vsm-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.vsm-form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.vsm-form-control:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.vsm-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* Buttons */
.vsm-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.vsm-button-primary {
    background-color: #007bff;
    color: #fff;
}

.vsm-button-primary:hover {
    background-color: #0056b3;
    color: #fff;
}

.vsm-button-secondary {
    background-color: #6c757d;
    color: #fff;
}

.vsm-button-secondary:hover {
    background-color: #545b62;
    color: #fff;
}

.vsm-button-danger {
    background-color: #dc3545;
    color: #fff;
}

.vsm-button-danger:hover {
    background-color: #c82333;
    color: #fff;
}

.vsm-button-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Portal Actions */
.vsm-portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vsm-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Warning Box */
.vsm-warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.vsm-warning-box p {
    margin: 0;
    color: #856404;
}

/* Cancel Info */
.vsm-cancel-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.vsm-cancel-info ul {
    margin: 10px 0 0 20px;
    color: #666;
}

.vsm-cancel-info li {
    margin: 5px 0;
}

/* My Signups */
.vsm-my-signups {
    max-width: 600px;
    margin: 0 auto;
}

.vsm-my-signups-list {
    max-width: 1200px;
    margin: 0 auto;
}

.vsm-signups-section {
    margin-bottom: 40px;
}

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

.vsm-signup-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.vsm-signup-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vsm-signup-card.vsm-past {
    opacity: 0.8;
}

.vsm-signup-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.vsm-signup-header h4 {
    margin: 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.vsm-signup-status {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.vsm-status-confirmed .vsm-signup-status {
    background: #d4edda;
    color: #155724;
}

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

.vsm-status-cancelled .vsm-signup-status {
    background: #f8d7da;
    color: #721c24;
}

.vsm-signup-details {
    margin-bottom: 15px;
}

.vsm-detail-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    color: #555;
}

.vsm-detail-item .vsm-icon {
    margin-right: 10px;
    font-size: 16px;
}

.vsm-detail-item.vsm-attended {
    color: #28a745;
    font-weight: 600;
}

.vsm-signup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Lookup Form */
.vsm-lookup-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .vsm-portal {
        padding: 10px;
    }
    
    .vsm-detail-row {
        flex-direction: column;
    }
    
    .vsm-detail-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .vsm-portal-actions,
    .vsm-form-actions {
        flex-direction: column;
    }
    
    .vsm-button {
        width: 100%;
    }
    
    .vsm-signups-grid {
        grid-template-columns: 1fr;
    }
    
    .vsm-signup-header {
        flex-direction: column;
    }
    
    .vsm-signup-status {
        margin-top: 10px;
    }
}
