/* iProov Camera Verification - Teams App Styles */

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    color: #333;
}

/* Stage mode - full screen video */
body.stage-mode {
    background: #000;
}

body.stage-mode .app-container {
    max-width: none;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.stage-mode .app-header {
    display: none;
}

body.stage-mode .video-section {
    flex: 1;
    margin: 0;
}

body.stage-mode .video-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
}

body.stage-mode .video-placeholder {
    background: #000;
}

body.stage-mode .verification-badge {
    top: 24px;
    right: 24px;
    padding: 12px 24px;
    font-size: 16px;
}

.app-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #6264A7 0%, #464775 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 32px;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 12px;
    opacity: 0.9;
}

/* Status Panel */
.status-panel {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    font-size: 13px;
    color: #666;
}

.status-value {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-value.pending {
    background: #f0f0f0;
    color: #666;
}

.status-value.success {
    background: #dff6dd;
    color: #13a10e;
}

.status-value.error {
    background: #fde7e9;
    color: #d13438;
}

.status-value.warning {
    background: #fff4ce;
    color: #8a6914;
}

/* Bot Section */
.bot-section {
    margin-bottom: 16px;
}

.full-width {
    width: 100%;
}

.manual-join {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.manual-join.hidden {
    display: none;
}

.text-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
}

.text-input:focus {
    outline: none;
    border-color: #6264A7;
    box-shadow: 0 0 0 2px rgba(98, 100, 167, 0.2);
}

/* Participants Section */
.participants-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.participants-section.hidden,
.verification-section.hidden {
    display: none;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 16px;
    color: #999;
    font-size: 13px;
}

.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: background 0.2s;
}

.participant-row:hover {
    background: #f0f0f0;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6264A7 0%, #464775 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.participant-details {
    display: flex;
    flex-direction: column;
}

.participant-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.participant-status {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: #13a10e;
}

.status-dot.inactive {
    background: #999;
}

.verify-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #0078d4;
    color: white;
    transition: all 0.2s;
}

.verify-btn:hover:not(:disabled) {
    background: #005a9e;
}

.verify-btn.disabled,
.verify-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Verification Section */
.verification-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.verification-status {
    padding: 10px;
    text-align: center;
}

.verification-message {
    font-size: 13px;
    font-weight: 500;
}

.verification-message.pending {
    color: #8a6914;
}

.verification-message.success {
    color: #13a10e;
}

.verification-message.error {
    color: #d13438;
}

.captured-frame-container {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.captured-frame-container.hidden {
    display: none;
}

.captured-frame {
    width: 100%;
    display: block;
}

.frame-info {
    padding: 8px 12px;
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
}

/* Controls */
.controls-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.control-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.primary {
    background: #0078d4;
    color: white;
    grid-column: span 2;
}

.control-btn.primary:hover:not(:disabled) {
    background: #005a9e;
}

.control-btn.success {
    background: #13a10e;
    color: white;
}

.control-btn.success:hover:not(:disabled) {
    background: #0e7a0b;
}

.control-btn.share {
    background: linear-gradient(135deg, #6264A7 0%, #464775 100%);
    color: white;
}

.control-btn.share:hover:not(:disabled) {
    background: linear-gradient(135deg, #464775 0%, #3a3a5c 100%);
}

.control-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.control-btn.secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.control-btn.danger {
    background: #d13438;
    color: white;
}

.control-btn.danger:hover:not(:disabled) {
    background: #a4262c;
}

.control-btn.experimental {
    background: linear-gradient(135deg, #8764b8 0%, #5c4d8a 100%);
    color: white;
    grid-column: span 2;
}

.control-btn.experimental:hover:not(:disabled) {
    background: linear-gradient(135deg, #5c4d8a 0%, #433a66 100%);
}


/* Debug Log */
.log-section {
    margin-bottom: 16px;
}

.toggle-log-btn {
    width: 100%;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-log-btn:hover {
    background: #e0e0e0;
}

.log-container {
    margin-top: 8px;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.log-container.hidden {
    display: none;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2d2d2d;
    color: #999;
    font-size: 12px;
}

.clear-log-btn {
    background: transparent;
    border: 1px solid #555;
    color: #999;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.clear-log-btn:hover {
    background: #333;
    color: #fff;
}

.log-output {
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    line-height: 1.5;
    color: #d4d4d4;
}

.log-entry {
    margin-bottom: 2px;
}

.log-entry.success {
    color: #4ec9b0;
}

.log-entry.warning {
    color: #dcdcaa;
}

.log-entry.error {
    color: #f48771;
}

.log-time {
    color: #808080;
    margin-right: 8px;
}
