/* DramaCool Ads Popup Styles with Multiple Ad Links */
.dramacool-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dramacool-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dramacool-popup-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: center;
}

.dramacool-popup-overlay.active .dramacool-popup-content {
    transform: translateY(0);
}

.dramacool-popup-icon {
    font-size: 60px;
    color: #2575fc;
    margin-bottom: 20px;
}

.dramacool-popup-header {
    margin-bottom: 20px;
}

.dramacool-popup-header h2 {
    color: #2575fc;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.dramacool-popup-body {
    margin-bottom: 25px;
}

.dramacool-popup-body p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
}

.dramacool-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin: 5px;
}

.dramacool-btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
}

.dramacool-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 117, 252, 0.4);
}

.dramacool-btn-ad {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFA726 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.dramacool-btn-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.dramacool-btn-ad:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dramacool-btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.dramacool-btn-secondary:hover {
    background: #e0e0e0;
}

.dramacool-timer-indicator {
    height: 4px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.dramacool-timer-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    transition: width 10s linear;
}

.dramacool-popup-overlay.active .dramacool-timer-progress {
    width: 100%;
}

.dramacool-site-logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.dramacool-site-logo-image {
    margin-bottom: 20px;
    text-align: center;
}

.dramacool-site-logo-image img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

.dramacool-ads-progress {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.dramacool-ads-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.dramacool-ad-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.dramacool-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.dramacool-step-circle.active {
    background: #2575fc;
    color: white;
}

.dramacool-step-circle.completed {
    background: #4CAF50;
    color: white;
}

.dramacool-step-label {
    font-size: 0.8rem;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.dramacool-ad-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background: #f0f8ff;
}

.dramacool-instructions {
    background: #fff9e6;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.dramacool-success-message {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    display: none;
}

.dramacool-success-message.visible {
    display: block;
}

.dramacool-ad-timer {
    margin-top: 10px;
    font-weight: bold;
    color: #2575fc;
}

.dramacool-ads-completion {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    gap: 20px;
}

.dramacool-ad-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.dramacool-ad-indicator.active {
    border-color: #2575fc;
    background: #f0f8ff;
}

.dramacool-ad-indicator.completed {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.dramacool-ad-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.dramacool-ad-number.completed {
    background: #4CAF50;
    color: white;
}

.dramacool-ad-number.watching {
    background: #FF9800;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.dramacool-ad-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.dramacool-ad-timer {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
    min-height: 20px;
}

.dramacool-ad-progress {
    width: 80px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.dramacool-ad-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    transition: width 1s linear;
}

/* Analytics Page Styles */
.wrap .card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wrap .card h2 {
    margin-top: 0;
    border-bottom: 1px solid #ccd0d4;
    padding-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dramacool-popup-content {
        padding: 20px;
        margin: 20px;
        max-width: 95%;
    }
    
    .dramacool-popup-header h2 {
        font-size: 1.5rem;
    }
    
    .dramacool-popup-body p {
        font-size: 1rem;
    }
    
    .dramacool-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .dramacool-ads-completion {
        flex-direction: column;
        gap: 15px;
    }
    
    .dramacool-ad-indicator {
        padding: 12px;
    }
    
    .dramacool-site-logo {
        font-size: 2rem;
    }
    
    .dramacool-site-logo-image img {
        max-width: 150px;
        max-height: 60px;
    }
}