* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
}

.hidden {
    display: none !important;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal */
.modal {
    position: relative;
    background: #2a2a40;
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

/* Icon */
.modal-icon {
    margin-bottom: 20px;
    color: #2ecc71;
}

.modal-icon-error {
    color: #e74c3c;
}

.modal-icon-warning {
    color: #f39c12;
}

/* Permission Steps */
.permission-steps {
    text-align: left;
    padding-left: 20px;
    margin-top: 8px;
}

.permission-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.permission-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Title */
.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

/* Text */
.modal-text {
    font-size: 15px;
    line-height: 1.5;
    color: #b0b0c0;
    margin-bottom: 28px;
}

.modal-text a {
    color: #2ecc71;
    text-decoration: underline;
    transition: color 0.2s;
}

.modal-text a:hover {
    color: #27ae60;
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
    background: #2ecc71;
    color: #fff;
}

.btn-primary:hover {
    background: #27ae60;
}

.btn-secondary {
    background: #3a3a55;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #4a4a65;
}

/* Loading */
.modal-loading { padding: 48px 32px; text-align: center; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid #3a3a55;
    border-top-color: #2ecc71; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #b0b0c0; font-size: 15px; }

/* Link button */
.link-btn { background: none; border: none; padding: 0; color: #2ecc71;
    text-decoration: underline; cursor: pointer; font-size: 15px; font-family: inherit; line-height: 1.5; }
.link-btn:hover { color: #27ae60; }

/* Legal modal */
.modal-legal { max-height: 85vh; max-width: 640px; width: 95%; display: flex;
    flex-direction: column; padding: 0; overflow: hidden; text-align: left; }
.legal-scroll { overflow-y: auto; padding: 48px 32px 32px; flex: 1; }
.legal-scroll h1 { font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 20px; color: #fff; line-height: 1.4; }
.legal-scroll h2 { font-size: 13px; font-weight: 700; margin-top: 20px; margin-bottom: 8px; color: #ddd; }
.legal-scroll p, .legal-scroll li { font-size: 13px; line-height: 1.6; color: #b0b0c0; margin-bottom: 8px; }
.legal-scroll ul { padding-left: 20px; margin-bottom: 12px; }
.legal-scroll ul li { margin-bottom: 4px; }
.veri-sorumlusu { margin-top: 16px; border-top: 1px solid #3a3a55; padding-top: 16px; }

/* Jitsi Container */
#jitsi-container {
    width: 100%;
    height: 100%;
}

#jitsi-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Session Surveys iframe overlay (survey.js) ── */
.ss-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(10, 10, 20, 0.6);
    display: flex; align-items: center; justify-content: center;
}
.ss-frame { border: 0; background: #fff; }
.ss-frame--fullscreen { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-frame--modal {
    width: min(560px, 100vw - 32px); height: min(720px, 100vh - 32px);
    border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ss-skip {
    position: absolute; top: 12px; left: 12px; z-index: 2001;
    background: rgba(0, 0, 0, 0.55); color: #fff; border: 0; border-radius: 999px;
    padding: 8px 14px; font-size: 13px; cursor: pointer; opacity: 0.85;
}
@media (min-width: 600px) { .ss-skip { top: auto; bottom: 16px; left: 50%; transform: translateX(-50%); } }
