/* AutoFlow Scheduler Modal Styles */
.autoflow-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(3px);
}

.autoflow-modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.autoflow-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 100000;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.autoflow-close:hover {
    color: #333;
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

.autoflow-iframe-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.autoflow-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Button Styles */
.autoflow-scheduler-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

.autoflow-scheduler-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* Button Color Variants */
.autoflow-scheduler-btn.btn-primary {
    background: #007cba;
    color: white;
}

.autoflow-scheduler-btn.btn-primary:hover {
    background: #005a87;
}

.autoflow-scheduler-btn.btn-secondary {
    background: #6c757d;
    color: white;
}

.autoflow-scheduler-btn.btn-secondary:hover {
    background: #545b62;
}

.autoflow-scheduler-btn.btn-success {
    background: #28a745;
    color: white;
}

.autoflow-scheduler-btn.btn-success:hover {
    background: #1e7e34;
}

/* Link Styles */
.autoflow-scheduler-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.autoflow-scheduler-link:hover {
    color: #005a87;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .autoflow-modal-content {
        margin: 1% auto;
        width: 98%;
        height: 85vh;
        border-radius: 4px;
    }

    .autoflow-close {
        right: 10px;
        top: 10px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    .autoflow-scheduler-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 300px;
    }
}

/* Accessibility */
.autoflow-scheduler-btn:focus,
.autoflow-scheduler-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Animation for modal open */
.autoflow-modal.show {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
