/**
 * PupilCity Session Frontend CSS - Minimal ALFA Mode
 *
 * @package PupilCity\TestPlugin\Assets\CSS
 * @since 1.0.0
 */

/* ==========================================================================
   Master Test Container
   ========================================================================== */

.pct-master-test-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}



/* ==========================================================================
   Content Area
   ========================================================================== */

.pct-content-area {
    margin-bottom: 20px;
    min-height: 400px;
}

.pct-content-wrapper {
    padding: 1.5rem;
}

.pct-step-content {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Buttons - Essential Only
   ========================================================================== */

.pct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pct-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.5s;
}

.pct-btn:hover::before {
    left: 100%;
}

.pct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pct-btn:active {
    transform: translateY(0);
}

.pct-btn-primary {
    background: #2aa5dc;
    color: white;
    box-shadow: 0 4px 15px rgba(42, 165, 220, 0.3);
}

.pct-btn-primary:hover {
    background: #1e8bb8;
    box-shadow: 0 8px 25px rgba(42, 165, 220, 0.4);
}

.pct-btn-secondary {
    background: #e7443a;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 68, 58, 0.3);
}

.pct-btn-secondary:hover {
    background: #d63c33;
    box-shadow: 0 8px 25px rgba(231, 68, 58, 0.4);
}

.pct-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Error Styles
   ========================================================================== */

.pct-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #c62828;
    box-shadow: 0 2px 10px rgba(198, 40, 40, 0.1);
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.pct-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 165, 220, 0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pct-loading-content {
    text-align: center;
    padding: 20px;
}

.pct-spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(42, 165, 220, 0.2);
    border-top: 3px solid #2aa5dc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

.pct-loading-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2aa5dc;
    margin: 0 0 5px 0;
}

.pct-loading-message {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.pct-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.pct-message-content {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pct-message-content.success {
    border-left: 4px solid #28a745;
    background: #d4edda;
    color: #155724;
}

.pct-message-content.error {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.pct-message-content.info {
    border-left: 4px solid #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

.pct-message-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

.pct-message-close:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Auto-save Indicator
   ========================================================================== */

.pct-autosave-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .pct-master-test-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .pct-content-wrapper {
        padding: 1rem;
    }
    
    /* Touch-friendly buttons */
    .pct-btn {
        min-height: 48px;
        padding: 0.875rem 1.25rem;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pct-master-test-container {
        padding: 0.75rem;
        margin: 0.25rem;
    }
    
    .pct-content-wrapper {
        padding: 0.75rem;
    }
    
    .pct-btn {
        padding: 0.75rem 1rem;
        font-size: 16px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .pct-loading-overlay,
    .pct-messages,
    .pct-autosave-indicator {
        display: none !important;
    }
    
    .pct-master-test-container {
        box-shadow: none;
        background: white;
    }
    
    .pct-content-area {
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 