/* assets/css/gorevli.css - Mobil Öncelikli Görevli Arayüzü */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --primary-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --dark: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #0f172a;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
    padding: 24px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.app-header .emblem {
    font-size: 32px;
    margin-bottom: 6px;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.4));
}

.app-header h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #34d399;
    text-transform: uppercase;
}

.app-header h2 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 4px;
}

/* Container */
.mobile-container {
    flex: 1;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* PIN Giriş Ekranı */
.pin-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.pin-card .title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.pin-card .subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

/* PIN Kutuları */
.pin-display-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pin-digit-box {
    width: 46px;
    height: 58px;
    border-radius: var(--radius-md);
    background: #0f172a;
    border: 2px solid #334155;
    color: #34d399;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    line-height: 58px;
    transition: all 0.2s ease;
}

.pin-digit-box.active {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    background: #132724;
}

/* Sayısal Tuş Takımı */
.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.num-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 1.6rem;
    font-weight: 700;
    height: 64px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.num-btn:active {
    background: #10b981;
    color: #0f172a;
    transform: scale(0.94);
}

.num-btn.delete-btn {
    background: #334155;
    color: #f87171;
    font-size: 1.3rem;
}

/* Ana Görevli Ekranı (Basit Dashboard) */
.staff-info-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.staff-info-card .staff-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
}

.staff-info-card .mosque-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    margin-top: 8px;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.active-status-badge {
    margin-top: 14px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: #1e293b;
    border-left: 4px solid #38bdf8;
    text-align: left;
    font-size: 0.85rem;
}

.active-status-badge .badge-title {
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.active-status-badge .badge-detail {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 2px;
}

/* DEV YOKLAMA AL BUTONU */
.btn-huge-attend {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.15s ease;
    text-decoration: none;
    margin-bottom: 20px;
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0% { transform: scale(1); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 16px 40px rgba(16, 185, 129, 0.6); }
    100% { transform: scale(1); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4); }
}

.btn-huge-attend:active {
    transform: scale(0.96);
}

/* Günlük Sayaç Kartı */
.today-summary-box {
    background: #1e293b;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item {
    text-align: center;
}

.summary-item .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #34d399;
}

.summary-item .label {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* KAMERA & SERİ QR TARAMA EKRANI */
.scanner-viewport {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.scanner-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 1010;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scanner-header .header-info {
    color: #ffffff;
}

.scanner-header .header-info h3 {
    font-size: 1.1rem;
    color: #34d399;
}

.scanner-header .header-info p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.btn-close-scanner {
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.video-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tarama Hedef Çerçevesi */
.scanner-target-box {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 3px solid rgba(52, 211, 153, 0.8);
    border-radius: 24px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.scanner-target-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #34d399;
    box-shadow: 0 0 12px #34d399;
    animation: scanLaser 2s ease-in-out infinite;
}

@keyframes scanLaser {
    0% { top: 5%; opacity: 0.2; }
    50% { top: 95%; opacity: 1; }
    100% { top: 5%; opacity: 0.2; }
}

.scanner-footer-hint {
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* BAŞARILI / HATA SONUÇ MODAL OVERLAY (BÜYÜK VE NET) */
.scan-feedback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.scan-feedback-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.feedback-card {
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.scan-feedback-overlay.active .feedback-card {
    transform: scale(1);
}

/* Başarılı Kart */
.feedback-card.success {
    background: linear-gradient(145deg, #065f46 0%, #047857 100%);
    border: 3px solid #34d399;
}

/* Hata Kartı */
.feedback-card.error {
    background: linear-gradient(145deg, #991b1b 0%, #7f1d1d 100%);
    border: 3px solid #f87171;
}

.feedback-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.feedback-status {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.feedback-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.feedback-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.feedback-points {
    display: inline-block;
    background: #ffffff;
    color: #065f46;
    font-size: 1.4rem;
    font-weight: 900;
    padding: 6px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Alt Bar */
.bottom-bar {
    padding: 16px;
    text-align: center;
    background: #0b1120;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-logout-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
