/* Page Sequence Timer - Frontend Styles */
#page-sequence-timer-container {
    position: relative;
    z-index: 9999;
    margin: 40px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pst-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.pst-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pst-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pst-step-indicator {
    font-size: 1.2rem;
    color: #3498db;
    font-weight: 600;
    margin-top: 10px;
}

.pst-progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 30px 0;
    overflow: hidden;
}

.pst-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #3498db);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.pst-timer-section {
    text-align: center;
    margin-bottom: 40px;
}

.pst-status-message {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.pst-timer-display {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 30px 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #f1c40f;
    transition: all 0.3s;
}

.pst-button-container {
    text-align: center;
    margin-top: 20px;
}

.pst-next-button {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    min-width: 300px;
}

.pst-next-button:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #3cb0fd, #3498db);
}

.pst-next-button:disabled {
    background: linear-gradient(90deg, #7f8c8d, #95a5a6);
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
    box-shadow: none;
}

.pst-access-denied {
    text-align: center;
    padding: 60px 20px;
}

.pst-access-denied h2 {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.pst-access-denied p {
    font-size: 1.3rem;
    color: #ecf0f1;
}

.pst-random-string-container {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px dashed #f1c40f;
}

.pst-random-string-display {
    font-family: 'Courier New', monospace;
    font-size: 2.2rem;
    font-weight: bold;
    color: #f1c40f;
    letter-spacing: 2px;
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    word-break: break-all;
}

.pst-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .pst-container {
        padding: 20px;
    }
    
    .pst-title {
        font-size: 2.2rem;
    }
    
    .pst-timer-display {
        font-size: 3.5rem;
    }
    
    .pst-next-button {
        padding: 18px 30px;
        min-width: 260px;
        font-size: 1.2rem;
    }
    
    .pst-random-string-display {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .pst-container {
        padding: 15px;
    }
    
    .pst-title {
        font-size: 1.8rem;
    }
    
    .pst-timer-display {
        font-size: 2.8rem;
    }
    
    .pst-next-button {
        padding: 16px 20px;
        min-width: 220px;
        font-size: 1.1rem;
    }
}

/* Debug mode styles */
.pst-debug-info {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #3498db;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 12px;
    color: #2ecc71;
    max-height: 200px;
    overflow-y: auto;
}

.pst-debug-info h4 {
    margin-top: 0;
    color: #f1c40f;
}