/**
 * DigMeet WordPress Plugin Stylesheet
 * Supports Inline & Modal Popup Booking with Dark & Light Themes
 */
:root {
    --digmeet-cyan: #00d2ff;
    --digmeet-dark: #0a0e17;
    --digmeet-card-bg: #0f172a;
}

/* Base Booking Container */
.digmeet-booking-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.digmeet-booking-container.digmeet-theme-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.digmeet-booking-container.digmeet-theme-dark {
    background: #0a0e17;
    border: 1px solid rgba(0, 210, 255, 0.25);
}

.digmeet-booking-container iframe {
    border: none;
    width: 100%;
    display: block;
}

/* Button & Link Styles */
.digmeet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 30px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
}

.digmeet-btn-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
}

.digmeet-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 210, 255, 0.55);
    color: #ffffff !important;
}

.digmeet-btn-dark {
    background: #0f172a;
    color: #00d2ff !important;
    border: 1px solid rgba(0, 210, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.digmeet-btn-dark:hover {
    background: #1e293b;
    border-color: #00d2ff;
    transform: translateY(-2px);
    color: #00d2ff !important;
}

.digmeet-btn-light {
    background: #ffffff;
    color: #0284c7 !important;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.digmeet-btn-light:hover {
    background: #f8fafc;
    border-color: #0284c7;
    transform: translateY(-2px);
    color: #0284c7 !important;
}

.digmeet-custom-styled-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
    color: #ffffff;
    border-radius: 30px;
    padding: 14px 28px;
    font-weight: 700;
}

.digmeet-link-trigger {
    color: #0284c7;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.digmeet-link-trigger:hover {
    color: #0369a1;
}

/* Modal Popup Overlay */
.digmeet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.digmeet-modal-overlay.open {
    display: flex;
    opacity: 1;
}

/* Modal Box */
.digmeet-modal-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.digmeet-modal-overlay.open .digmeet-modal-box {
    transform: scale(1) translateY(0);
}

/* Dark Theme Modal */
.digmeet-modal-theme-dark {
    background: #0a0e17;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.digmeet-modal-theme-dark .digmeet-modal-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.digmeet-modal-theme-dark .digmeet-modal-close {
    color: #94a3b8;
}

.digmeet-modal-theme-dark .digmeet-modal-close:hover {
    color: #00d2ff;
    background: rgba(255, 255, 255, 0.08);
}

/* Light Theme Modal */
.digmeet-modal-theme-light {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.digmeet-modal-theme-light .digmeet-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.digmeet-modal-theme-light .digmeet-modal-close {
    color: #64748b;
}

.digmeet-modal-theme-light .digmeet-modal-close:hover {
    color: #0284c7;
    background: rgba(0, 0, 0, 0.06);
}

/* Modal Header */
.digmeet-modal-header {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.digmeet-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.digmeet-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

/* Modal Body / Iframe */
.digmeet-modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 620px;
    max-height: 75vh;
}

.digmeet-modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    display: block;
}