/**
 * PMExpo Plugin Styles
 * 
 * @package PMExpo
 * @since 1.0.0
 */

/* ==========================================================================
   Registration Form Styles
   ========================================================================== */

.pmexpo-registration-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pmexpo-form-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.pmexpo-form-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.pmexpo-registration-form {
    width: 100%;
}

.pmexpo-form-group {
    margin-bottom: 20px;
}

.pmexpo-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.pmexpo-form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.pmexpo-form-group input[type="text"],
.pmexpo-form-group input[type="email"],
.pmexpo-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.pmexpo-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pmexpo-form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.pmexpo-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pmexpo-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.pmexpo-submit-btn:active {
    transform: translateY(0);
}

.pmexpo-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pmexpo-loading {
    display: none;
}

.pmexpo-submit-btn.loading .pmexpo-submit-text {
    display: none;
}

.pmexpo-submit-btn.loading .pmexpo-loading {
    display: inline;
}

/* Form Messages */
.pmexpo-form-messages {
    margin-top: 20px;
}

.pmexpo-success-message {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-bottom: 15px;
}

.pmexpo-error-message {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ==========================================================================
   Statistics Styles
   ========================================================================== */

.pmexpo-stats-container {
    margin: 20px 0;
}

.pmexpo-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pmexpo-stats-cards .pmexpo-stat-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #3498db;
}

.pmexpo-stats-list .pmexpo-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.pmexpo-stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.pmexpo-stats-inline .pmexpo-stat-item {
    text-align: center;
}

.pmexpo-stat-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.pmexpo-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.pmexpo-stats-inline .pmexpo-stat-value {
    font-size: 24px;
}

/* ==========================================================================
   Countdown Styles
   ========================================================================== */

.pmexpo-countdown-container {
    text-align: center;
    margin: 20px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.pmexpo-countdown-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.pmexpo-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pmexpo-countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.pmexpo-countdown-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.pmexpo-countdown-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.pmexpo-countdown-compact .pmexpo-countdown-item {
    min-width: 60px;
    padding: 15px 10px;
}

.pmexpo-countdown-compact .pmexpo-countdown-number {
    font-size: 24px;
}

.pmexpo-countdown-expired {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border-radius: 10px;
}

/* ==========================================================================
   Admin Styles
   ========================================================================== */

.pmexpo-dashboard {
    margin: 20px 0;
}

.pmexpo-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pmexpo-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    text-align: center;
}

.pmexpo-stat-card h3 {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pmexpo-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.pmexpo-dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.pmexpo-dashboard-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pmexpo-dashboard-section h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.pmexpo-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pmexpo-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.pmexpo-status-pending {
    background: #fff3cd;
    color: #856404;
}

.pmexpo-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.pmexpo-attended {
    color: #27ae60;
    font-weight: 600;
}

.pmexpo-not-attended {
    color: #95a5a6;
}

.pmexpo-qr-used {
    color: #27ae60;
    font-weight: 600;
}

.pmexpo-qr-not-used {
    color: #95a5a6;
}

.pmexpo-still-present {
    color: #f39c12;
    font-weight: 600;
}

.pmexpo-registrations-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.pmexpo-bulk-actions {
    display: flex;
    gap: 10px;
}

.pmexpo-pagination {
    margin-top: 20px;
    text-align: center;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .pmexpo-registration-container {
        margin: 10px;
        padding: 15px;
    }
    
    .pmexpo-form-title {
        font-size: 24px;
    }
    
    .pmexpo-stats-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pmexpo-countdown {
        gap: 10px;
    }
    
    .pmexpo-countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .pmexpo-countdown-number {
        font-size: 28px;
    }
    
    .pmexpo-stats-inline {
        flex-direction: column;
        gap: 15px;
    }
    
    .pmexpo-dashboard-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pmexpo-registrations-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .pmexpo-bulk-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pmexpo-form-group input[type="text"],
    .pmexpo-form-group input[type="email"],
    .pmexpo-form-group input[type="tel"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .pmexpo-submit-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .pmexpo-countdown-container {
        padding: 20px;
    }
    
    .pmexpo-countdown-title {
        font-size: 20px;
    }
    
    .pmexpo-countdown-item {
        min-width: 60px;
        padding: 10px 8px;
    }
    
    .pmexpo-countdown-number {
        font-size: 24px;
    }
    
    .pmexpo-stat-number {
        font-size: 28px;
    }
}

/* ==========================================================================
   Loading Animation
   ========================================================================== */

@keyframes pmexpo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pmexpo-loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: pmexpo-spin 1s ease-in-out infinite;
    margin-left: 10px;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.pmexpo-form-group input:focus,
.pmexpo-submit-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .pmexpo-submit-btn,
    .pmexpo-form-group input,
    .pmexpo-loading::after {
        transition: none;
        animation: none;
    }
}

/* Screen reader only text */
.pmexpo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}