/* ========== ADETSIS Mobil — PWA Stiller ========== */

/* ===== CSS Değişkenler ===== */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Yükleniyor ===== */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
    color: var(--text-muted);
}

.app-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Tipografi ===== */
h1, h2, h3 { font-weight: 700; color: var(--text); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }

/* ===== Header ===== */
.m-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    color: white;
    height: var(--header-height);
    padding: 0 16px;
    padding-top: var(--safe-top);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.m-header-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.m-header-avatar-btn {
    background: rgba(255,255,255,0.2) !important;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.m-header-avatar-text {
    font-family: var(--font);
}

.m-header-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.m-header-btn:active {
    background: rgba(255,255,255,0.3);
}

/* Rapor süre sayacı */
.m-rapor-timer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.18);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}
.m-rapor-timer i {
    font-size: 0.7rem;
    opacity: 0.85;
}

/* ===== İçerik ===== */
.m-content {
    flex: 1;
    padding: 16px;
    padding-bottom: calc(16px + var(--safe-bottom));
}

/* ===== Butonlar ===== */
.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    -webkit-user-select: none;
    user-select: none;
}

.m-btn:active { transform: scale(0.97); }

.m-btn-primary {
    background: var(--primary);
    color: white;
}
.m-btn-primary:active { background: var(--primary-dark); }

.m-btn-success {
    background: var(--success);
    color: white;
}

.m-btn-danger {
    background: var(--danger);
    color: white;
}

.m-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.m-btn-outline:active { background: rgba(79, 70, 229, 0.08); }

.m-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.m-btn-ghost:active { background: rgba(0,0,0,0.05); }

.m-btn-block {
    display: flex;
    width: 100%;
}

.m-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-height: 36px;
}

.m-btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    min-height: 48px;
}

.m-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Kartlar ===== */
.m-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}

.m-card-compact {
    padding: 12px;
}

/* ===== Badge'ler ===== */
.m-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.badge-primary { background: rgba(79,70,229,0.1); color: var(--primary); }
.badge-success { background: var(--success-light); color: #059669; }
.badge-danger { background: var(--danger-light); color: #dc2626; }
.badge-warning { background: var(--warning-light); color: #d97706; }
.badge-info { background: var(--info-light); color: #2563eb; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

.badge-gecikme {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== Form Elementleri ===== */
.m-form-group {
    margin-bottom: 16px;
}

.m-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.m-form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.m-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--card-bg);
    transition: border-color 0.2s;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.m-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.m-form-input::placeholder {
    color: var(--text-muted);
}

.m-form-input.error {
    border-color: var(--danger);
}

.m-form-input:disabled, .m-form-input:read-only {
    background: #f8fafc;
    color: var(--text-secondary);
    cursor: default;
}

select.m-form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5L8 12l6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

textarea.m-form-input {
    min-height: 80px;
    resize: vertical;
}

.m-form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 4px;
}

.m-form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Radio Grup (Kart Stili) ===== */
.m-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m-radio-item {
    position: relative;
    flex: 1;
    min-width: 0;
}

.m-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.m-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    background: var(--card-bg);
    user-select: none;
    -webkit-user-select: none;
}

.m-radio-item input:checked + .m-radio-label {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.m-radio-label:active {
    transform: scale(0.97);
}

/* Renkli radio varyantları (düzeltme süresi) */
.m-radio-label.ds-yok { color: #16a34a; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.06); }
.m-radio-item input:checked + .m-radio-label.ds-yok { background: rgba(34,197,94,0.15); border-color: #16a34a; font-weight: 700; }

.m-radio-label.ds-altmis { color: #dc2626; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.m-radio-item input:checked + .m-radio-label.ds-altmis { background: rgba(239,68,68,0.15); border-color: #dc2626; font-weight: 700; }

.m-radio-label.ds-yuzyirmi { color: #ca8a04; border-color: rgba(234,179,8,0.3); background: rgba(234,179,8,0.06); }
.m-radio-item input:checked + .m-radio-label.ds-yuzyirmi { background: rgba(234,179,8,0.15); border-color: #ca8a04; font-weight: 700; }

.m-radio-label.ds-onikay { color: #2563eb; border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.06); }
.m-radio-item input:checked + .m-radio-label.ds-onikay { background: rgba(59,130,246,0.15); border-color: #2563eb; font-weight: 700; }

/* ===== Sekmeler (Tab Nav) ===== */
.m-tabs {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 4px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.m-tabs::-webkit-scrollbar { display: none; }

.m-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    min-width: 60px;
}

.m-tab i {
    font-size: 1.1rem;
}

.m-tab.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.m-tab.has-error::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
}

.m-tab.active.has-error::after {
    background: white;
}

/* ===== Tab İçerik ===== */
.m-tab-content {
    padding: 16px 0;
}

/* ===== Akordeon ===== */
.m-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
}

.m-accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.m-accordion-header i.chevron {
    margin-left: auto;
    transition: transform 0.2s;
    color: var(--text-muted);
}

.m-accordion.open .m-accordion-header i.chevron {
    transform: rotate(180deg);
}

.m-accordion-body {
    display: none;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}

.m-accordion.open .m-accordion-body {
    display: block;
}

/* ===== Login Sayfası ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4f46e5 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.login-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
}

.shape-1 {
    width: 300px; height: 300px;
    top: -80px; right: -60px;
    animation: float-shape 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px; height: 200px;
    bottom: 10%; left: -50px;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px; height: 150px;
    top: 40%; right: 20%;
    animation: float-shape 12s ease-in-out infinite 2s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 36px 24px 32px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    animation: card-enter 0.6s ease;
}

@keyframes card-enter {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
    animation: logo-bounce 0.8s ease 0.3s both;
}

@keyframes logo-bounce {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.login-logo h1 {
    font-size: 1.6rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-error {
    background: var(--danger-light);
    color: #dc2626;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
    border-left: 4px solid var(--danger);
}

.login-input-group {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    transition: all 0.25s;
    overflow: hidden;
}

.login-input-group.focused {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.login-input-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color 0.25s;
}

.login-input-group.focused .login-input-icon {
    color: var(--primary);
}

.login-input-group input {
    flex: 1;
    padding: 14px 14px 14px 0;
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    min-height: 48px;
    outline: none;
}

.login-eye-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-submit-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    margin-top: 8px;
}

.login-submit-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-btn-success {
    background: linear-gradient(135deg, var(--success), #059669) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.login-btn-arrow {
    transition: transform 0.2s;
}

.login-submit-btn:active .login-btn-arrow {
    transform: translateX(3px);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.login-version {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* ===== Profil Menü ===== */
.m-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    animation: fade-in 0.15s ease;
}

.m-profile-overlay.hidden {
    display: none;
}

.m-profile-panel {
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--card-bg);
    padding: 0 20px 24px;
    padding-top: calc(20px + var(--safe-top));
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    animation: slide-in-right 0.25s ease;
    overflow-y: auto;
}

@keyframes slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.m-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.m-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.m-profile-info {
    flex: 1;
    min-width: 0;
}

.m-profile-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-profile-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.m-profile-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-profile-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.m-profile-detail-row i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Profil Bölümler (Bildirim, Install) ===== */
.m-profile-section {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}

.m-profile-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.m-profile-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.m-profile-toggle-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}

.m-profile-toggle-info i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
}

/* iOS tarzı Toggle Switch */
.m-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.m-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.m-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 28px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.m-toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.m-toggle-switch input:checked + .m-toggle-slider {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

.m-toggle-switch input:checked + .m-toggle-slider::before {
    transform: translateX(22px);
}

.m-toggle-switch input:disabled + .m-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toggle durum metni */
.m-profile-toggle-status {
    font-size: 0.75rem;
    margin-top: 6px;
    min-height: 16px;
    transition: color 0.2s;
}

.m-profile-toggle-status.status-active {
    color: var(--success);
}

.m-profile-toggle-status.status-inactive {
    color: var(--text-muted);
}

.m-profile-toggle-status.status-denied {
    color: var(--danger);
}

.m-profile-toggle-status.status-error {
    color: var(--warning);
}

/* Ana Ekrana Ekle Butonu */
.m-btn-install {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.m-btn-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.m-btn-install:active {
    transform: scale(0.98);
}

/* Install hint (iOS talimat) */
.m-profile-install-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--info-light);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.m-profile-install-hint i {
    color: var(--info);
    margin-right: 4px;
}

/* ===== Görevlerim Tab Switcher ===== */
.m-tabs-gorevlerim {
    display: flex;
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin: 0 16px 12px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.m-tab-gorevlerim {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.m-tab-gorevlerim.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.m-tab-gorevlerim:not(.active):hover {
    background: var(--border-light);
    color: var(--text);
}

.m-tab-gorevlerim i {
    font-size: 0.85rem;
}

/* Tamamlanan kart — yeşil accent */
.gorev-card-tamamlanan {
    border-left: none;
}

.gorev-card-tamamlanan .gorev-card-accent {
    background: var(--success) !important;
}

/* Tamamlanan stat kartı */
.m-stat-success-card::before {
    background: linear-gradient(90deg, var(--success), #34d399);
}

.m-stat-success-card .m-stat-icon {
    color: var(--success);
}

/* Fatura butonları kart içi */
.fatura-ekle-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: white !important;
}

.fatura-ekle-btn:hover {
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

/* ===== Fatura Sayfası Stilleri ===== */
.m-fatura-gorev-info {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.m-fatura-gorev-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 3px 0;
}

.m-fatura-gorev-row i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
}

.m-fatura-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.m-fatura-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-fatura-section-title i {
    color: var(--primary);
}

/* Mevcut fatura listesi */
.m-fatura-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m-fatura-list-item {
    padding: 10px 12px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--success);
}

.m-fatura-list-unvan {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
}

.m-fatura-list-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.m-fatura-list-detail i {
    margin-right: 3px;
}

.m-fatura-list-fiyat {
    color: var(--success);
    font-weight: 600;
}

/* Form row (2 sütun) */
.m-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Form row (3 sütun) */
.m-form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.m-form-group {
    margin-bottom: 10px;
}

.m-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Hizmet satırı */
.m-hizmet-satir {
    background: var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary);
}

.m-hizmet-satir-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.m-hizmet-satir-no {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}

.m-hizmet-satir-sil {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.m-hizmet-satir-sil:hover {
    background: var(--danger-light);
}

/* Fatura aksiyon butonları */
.m-fatura-actions {
    padding: 16px 0 calc(16px + var(--safe-bottom));
}

/* ===== ATS Güncelle Butonu (rapor doldurma) ===== */
.m-ats-guncelle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 8px;
}

.m-ats-guncelle-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== İstatistik Kartları ===== */
.m-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.m-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.m-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.m-stat-primary::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.m-stat-info::before { background: linear-gradient(90deg, var(--info), #60a5fa); }
.m-stat-warning::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }

.m-stat-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
    opacity: 0.7;
}

.m-stat-primary .m-stat-icon { color: var(--primary); }
.m-stat-info .m-stat-icon { color: var(--info); }
.m-stat-warning .m-stat-icon { color: var(--warning); }

.m-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.m-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Uyarı bandı */
.m-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.m-alert-danger {
    background: var(--danger-light);
    color: #dc2626;
    border-left: 4px solid var(--danger);
}

/* ===== Görev Kartı ===== */
.gorev-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    display: flex;
    overflow: hidden;
    --card-accent: var(--primary);
}

.gorev-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Sol renkli şerit */
.gorev-card-accent {
    width: 5px;
    flex-shrink: 0;
    background: var(--card-accent);
}

.gorev-card-content {
    flex: 1;
    padding: 14px;
    min-width: 0;
}

/* Gecikmiş kart */
.gorev-card-gecikmi {
    background: linear-gradient(90deg, #fef2f2 0%, var(--card-bg) 30%);
}
.gorev-card-gecikmi .gorev-card-accent {
    background: var(--danger);
}

/* Onay bekleyen kart */
.gorev-card-onay {
    background: linear-gradient(90deg, #fefce8 0%, var(--card-bg) 30%);
}
.gorev-card-onay .gorev-card-accent {
    background: var(--warning);
}

.gorev-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
}

/* Görev türü badge — özel renkli */
.gorev-card-tur-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.gorev-card-tur-badge i {
    font-size: 0.65rem;
}

.gorev-card-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gorev-card-belediye {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gorev-card-belediye i {
    width: 14px;
    text-align: center;
    font-size: 0.7rem;
}

.gorev-card-adres {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.gorev-card-adres i {
    width: 14px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.gorev-card-tarih {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.gorev-card-tarih i {
    width: 14px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Asansör chip'ler */
.gorev-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.gorev-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.gorev-chip i {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.gorev-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.gorev-card-raporno {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.gorev-card-raporno i {
    font-size: 0.7rem;
}

.gorev-card-raporno strong {
    color: var(--text);
}

/* Büyük Rapor Doldur butonu */
.gorev-rapor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.gorev-rapor-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3);
}

.gorev-rapor-btn i {
    font-size: 0.8rem;
}

/* Onay bekliyor badge */
.gorev-onay-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--warning-light);
    color: #d97706;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.gorev-onay-badge i {
    font-size: 0.7rem;
}

/* ===== Toast Bildirim ===== */
#toast-container {
    position: fixed;
    top: calc(8px + var(--safe-top));
    left: 8px;
    right: 8px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.m-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: white;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toast-in 0.3s ease-out;
}

.m-toast.toast-success { background: #059669; }
.m-toast.toast-error { background: #dc2626; }
.m-toast.toast-warning { background: #d97706; }
.m-toast.toast-info { background: #2563eb; }

.m-toast.toast-out {
    animation: toast-out 0.3s ease-in forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* ===== Boş Durum ===== */
.m-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    text-align: center;
    color: var(--text-muted);
}

.m-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.m-empty-icon i {
    font-size: 2rem;
    color: var(--text-muted);
}

.m-empty-icon-success {
    background: var(--success-light);
}
.m-empty-icon-success i {
    color: var(--success);
}

.m-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.m-empty-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Eski uyum */
.m-empty > i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.m-empty > p {
    font-size: 0.95rem;
}

/* ===== Yükleniyor (sayfa içi) ===== */
.m-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 12px;
    color: var(--text-muted);
}

.m-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== Pull to Refresh ===== */
.m-pull-indicator {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: none;
}

.m-pull-indicator.visible {
    display: block;
}

/* ===== Modal ===== */
.m-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    animation: fade-in 0.2s ease;
}

.m-modal {
    width: 100%;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slide-up 0.3s ease;
}

.m-modal-full {
    max-height: 100vh;
    border-radius: 0;
}

.m-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.m-modal-header h3 {
    flex: 1;
    font-size: 1.05rem;
}

.m-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
}

.m-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.m-modal-footer {
    padding: 12px 16px;
    padding-bottom: calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ===== Rapor Doldur Spesifik ===== */
.rapor-gorev-ozet {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.rapor-gorev-ozet-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.rapor-gorev-ozet-row {
    display: flex;
    gap: 8px;
    opacity: 0.9;
    margin-bottom: 2px;
}

/* Rapor form alt butonlar */
.rapor-actions {
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    padding: 12px 16px;
    padding-bottom: calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.rapor-actions .m-btn {
    flex: 1;
}

/* Readonly bilgi satırı */
.m-info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
}

.m-info-row:last-child {
    border-bottom: none;
}

.m-info-label {
    width: 120px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.m-info-value {
    flex: 1;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

/* ===== Resim Grid ===== */
.m-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.m-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f1f5f9;
}

.m-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-image-item .m-image-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

.m-image-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    gap: 4px;
    transition: border-color 0.2s;
}

.m-image-add i {
    font-size: 1.5rem;
}

.m-image-add:active {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Kontrol Listesi Soruları ===== */
.m-soru-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.m-soru-item:last-child {
    border-bottom: none;
}

.m-soru-text {
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: var(--text);
}

.m-soru-cevaplar {
    display: flex;
    gap: 6px;
}

.m-soru-cevap {
    flex: 1;
    padding: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-soru-cevap.selected-uygun {
    background: var(--success-light);
    border-color: var(--success);
    color: #059669;
    font-weight: 600;
}

.m-soru-cevap.selected-uygunsuz {
    background: var(--danger-light);
    border-color: var(--danger);
    color: #dc2626;
    font-weight: 600;
}

.m-soru-cevap.selected-uygulanmaz {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #64748b;
    font-weight: 600;
}

.m-soru-cevap:active {
    transform: scale(0.96);
}

/* İstatistik barı */
.m-soru-stats {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.m-soru-stats-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-soru-stats-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ===== Kontrol Listesi — Hiyerarşik Yapı ===== */

/* Genel üst bar */
.m-kl-topbar {
    margin-bottom: 12px;
}
.m-kl-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.m-kl-stats-toplam {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    margin-right: 4px;
}
.m-kl-toplu-row {
    display: flex;
    gap: 6px;
}

/* İstatistik badge'leri */
.m-kl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.m-kl-badge-uygun { background: var(--success); }
.m-kl-badge-uygunsuz { background: var(--danger); }
.m-kl-badge-uygulanmaz { background: #94a3b8; }
.m-kl-badge-bos { background: #cbd5e1; color: #475569; }

/* Badges container */
.m-kl-badges {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

/* Toplu cevap butonları */
.m-kl-toplu-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    font-family: var(--font);
}
.m-kl-toplu-btn:active { transform: scale(0.95); }
.m-kl-toplu-uygun { background: var(--success-light); color: #059669; border: 1px solid var(--success); }
.m-kl-toplu-uygunsuz { background: var(--danger-light); color: #dc2626; border: 1px solid var(--danger); }
.m-kl-toplu-uygulanmaz { background: #f1f5f9; color: #64748b; border: 1px solid #94a3b8; }
.m-kl-toplu-mini {
    display: flex;
    gap: 3px;
}
.m-kl-toplu-mini .m-kl-toplu-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
}

/* ÖzelGrup (1. düzey) */
.m-kl-ozelgrup {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.m-kl-ozelgrup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    gap: 6px;
    flex-wrap: wrap;
}
.m-kl-ozelgrup-title {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}
.m-kl-ozelgrup-title strong {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-kl-ozelgrup-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.m-kl-ozelgrup-header .m-kl-toplu-uygun { background: rgba(255,255,255,0.2); color: white; border-color: rgba(255,255,255,0.4); }
.m-kl-ozelgrup-header .m-kl-toplu-uygunsuz { background: rgba(255,255,255,0.2); color: white; border-color: rgba(255,255,255,0.4); }
.m-kl-ozelgrup-header .m-kl-toplu-uygulanmaz { background: rgba(255,255,255,0.2); color: white; border-color: rgba(255,255,255,0.4); }
.m-kl-ozelgrup-body {
    transition: max-height 0.2s;
}
.m-kl-ozelgrup.collapsed .m-kl-ozelgrup-body {
    display: none;
}

/* Chevron ikonları */
.m-kl-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.m-kl-count {
    font-size: 0.72rem;
    opacity: 0.8;
}
.m-kl-ozelgrup-header .m-kl-count { color: rgba(255,255,255,0.75); }

/* Kontrol Grubu (2. düzey) */
.m-kl-grup {
    border-bottom: 1px solid var(--border-light);
}
.m-kl-grup:last-child { border-bottom: none; }
.m-kl-grup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    cursor: pointer;
    border-left: 3px solid var(--primary);
    gap: 4px;
    flex-wrap: wrap;
}
.m-kl-grup-title {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.m-kl-grup-title span {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-kl-grup-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.m-kl-grup-header .m-kl-count { color: var(--text-muted); }
.m-kl-grup-body {
    padding: 0 10px;
}
.m-kl-grup-body.collapsed {
    display: none;
}

/* ===== Drill-down Kontrol Listesi ===== */

/* Breadcrumb navigasyonu */
.m-kl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.m-kl-bread-back {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.m-kl-bread-back:active {
    background: var(--border-light);
}
.m-kl-bread-text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    min-width: 0;
    flex-wrap: wrap;
}
.m-kl-bread-text i {
    font-size: 0.6rem;
    color: var(--text-muted);
}
.m-kl-bread-text strong {
    color: var(--text);
    font-size: 0.82rem;
}
.m-kl-bread-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Drill-down item listesi */
.m-kl-drill-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.m-kl-drill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}
.m-kl-drill-item:active {
    background: var(--border-light);
    transform: scale(0.99);
}
.m-kl-drill-item.tamamlandi {
    border-color: var(--success);
    background: var(--success-light);
}
.m-kl-drill-item.uygunsuz-var {
    border-left: 3px solid var(--danger);
}
.m-kl-drill-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.m-kl-drill-item.tamamlandi .m-kl-drill-icon {
    background: linear-gradient(135deg, var(--success), #34d399);
}
.m-kl-drill-content {
    flex: 1;
    min-width: 0;
}
.m-kl-drill-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2px;
}
.m-kl-drill-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.m-kl-drill-badges {
    display: flex;
    gap: 3px;
}
.m-kl-drill-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Drill-down aksiyonlar (toplu cevap + stats) */
.m-kl-drill-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.m-kl-drill-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sorular listesi (seviye 2) */
.m-kl-sorular-list {
    display: flex;
    flex-direction: column;
}

/* Soru etiket badge */
.m-soru-etiket {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    margin-right: 3px;
    vertical-align: middle;
}
.m-soru-no {
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 2px;
    font-size: 0.8rem;
}

/* ===== Offline Gösterge ===== */
.m-offline-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--warning);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.m-offline-badge.visible {
    display: flex;
    justify-content: center;
}

/* ===== Senkronizasyon Göstergeleri ===== */
.m-sync-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.m-sync-badge.syncing {
    background: linear-gradient(135deg, var(--info), #2563eb);
    animation: pulse-sync 1.5s ease infinite;
}

@keyframes pulse-sync {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.m-sync-badge.hidden {
    display: none;
}

.m-sync-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.m-sync-info i {
    font-size: 0.65rem;
}

/* ===== Genel Yardımcılar ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.fw-600 { font-weight: 600; }
.fs-sm { font-size: 0.85rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ===== Skeleton Loading ===== */
.m-skeleton-container {
    padding: 0;
}

.m-skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    height: 140px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.m-skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    animation: skeleton-shimmer 1.5s infinite;
}

.m-skeleton-pulse {
    position: relative;
    overflow: hidden;
    background: #e2e8f0 !important;
}

.m-skeleton-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Sayfa & Kart Animasyonları ===== */
.m-page-enter {
    animation: page-fade-in 0.3s ease;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.m-card-enter {
    animation: card-slide-up 0.35s ease both;
}

@keyframes card-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Rapor Doldur — Gelişmiş Sekmeler ===== */
.m-tabs-enhanced {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    padding: 6px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

.m-tabs-enhanced::-webkit-scrollbar { display: none; }

.m-tab-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s;
    min-width: 60px;
}

.m-tab-enhanced i {
    font-size: 1.05rem;
    transition: color 0.25s;
}

.m-tab-enhanced.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(79, 70, 229, 0.08);
}

.m-tab-enhanced.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px 3px 0 0;
}

.m-tab-enhanced .tab-step {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    color: var(--text-muted);
}

.m-tab-enhanced.active .tab-step {
    background: var(--primary);
    color: white;
}

.m-tab-enhanced.completed .tab-step {
    background: var(--success);
    color: white;
}

.m-tab-enhanced.has-error .tab-step {
    background: var(--danger);
    color: white;
}

/* İlerleme çubuğu */
.m-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 8px 0 4px;
    overflow: hidden;
}

.m-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 2px;
    transition: width 0.4s ease;
    min-width: 0;
}

.m-progress-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 8px;
}

/* ===== Rapor — Gradient Kaydet Butonu ===== */
.rapor-actions-enhanced {
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    padding: 10px 16px;
    padding-bottom: calc(10px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    z-index: 50;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.rapor-actions-enhanced .m-btn {
    flex: 1;
}

.rapor-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 50px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
    flex: 1;
}

.rapor-save-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.rapor-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Form Section — Sol Accent Çizgi ===== */
.m-form-section-enhanced {
    margin-bottom: 20px;
}

.m-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-left: 12px;
    position: relative;
}

.m-form-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.m-form-section-title i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Readonly alan iyileştirmesi */
.m-form-input.readonly-enhanced {
    background: #f8fafc;
    border-color: var(--border-light);
    color: var(--text);
    position: relative;
    padding-left: 36px;
}

.m-readonly-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Dokunmatik İyileştirmeler ===== */

/* Kart dokunma — hafif scale + gölge */
.gorev-card {
    -webkit-tap-highlight-color: transparent;
}

/* Tüm listelerde momentum scroll */
.m-content,
.m-modal-body,
.m-tabs,
.m-tabs-enhanced {
    -webkit-overflow-scrolling: touch;
}

/* Buton dokunma — haptic-benzeri */
.m-btn,
.gorev-rapor-btn,
.login-submit-btn,
.m-soru-cevap,
.m-kl-toplu-btn,
.rapor-save-btn {
    -webkit-tap-highlight-color: transparent;
}

/* Ripple efekti */
.m-ripple {
    position: relative;
    overflow: hidden;
}

.m-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.4s, opacity 0.8s;
    pointer-events: none;
}

.m-ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Soru cevap büyük dokunma alanı */
.m-soru-cevap {
    min-height: 44px;
    -webkit-user-select: none;
    user-select: none;
}

/* Kontrol listesi — uygun değil satır vurgusu */
.m-soru-item.soru-uygunsuz {
    background: rgba(239, 68, 68, 0.04);
    border-left: 3px solid var(--danger);
    padding-left: 10px;
    margin-left: -3px;
}

/* Grup başlıkları — geniş tıklama alanı */
.m-kl-grup-header {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.m-kl-ozelgrup-title {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --card-bg: #1e293b;
        --text: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --border: #334155;
        --border-light: #1e293b;
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
        --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
        --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
        --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
        --success-light: rgba(16, 185, 129, 0.15);
        --danger-light: rgba(239, 68, 68, 0.15);
        --warning-light: rgba(245, 158, 11, 0.15);
        --info-light: rgba(59, 130, 246, 0.15);
    }

    body {
        color-scheme: dark;
    }

    /* Login */
    .login-card {
        background: #1e293b;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    }

    .login-logo h1 { color: var(--text); }

    .login-input-group {
        background: #0f172a;
        border-color: #334155;
    }

    .login-input-group.focused {
        background: #1e293b;
        border-color: var(--primary-light);
    }

    .login-input-group input {
        color: var(--text);
    }

    .login-error {
        background: rgba(239, 68, 68, 0.15);
        border-left-color: var(--danger);
    }

    /* Form elemanları */
    .m-form-input {
        background: #0f172a;
        border-color: #334155;
        color: var(--text);
    }

    .m-form-input:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

    .m-form-input:disabled, .m-form-input:read-only {
        background: #0f172a;
        color: var(--text-secondary);
    }

    /* Kartlar */
    .m-card, .gorev-card, .m-stat-card {
        background: var(--card-bg);
    }

    /* Sekmeler */
    .m-tabs, .m-tabs-enhanced {
        background: var(--card-bg);
    }

    .m-tab.active {
        background: var(--primary);
    }

    .m-tab-enhanced.active {
        background: rgba(99, 102, 241, 0.15);
    }

    /* Akordeon */
    .m-accordion-header {
        background: #0f172a;
    }

    /* Profil panel */
    .m-profile-panel {
        background: var(--card-bg);
    }

    .m-profile-header {
        border-bottom-color: var(--border);
    }

    .m-profile-section {
        border-top-color: var(--border);
    }

    .m-toggle-slider {
        background: #475569;
    }

    .m-profile-install-hint {
        background: rgba(59, 130, 246, 0.12);
        color: var(--text-secondary);
    }

    /* Toast */
    .m-toast {
        background: #334155;
    }

    /* Rapor */
    .rapor-actions, .rapor-actions-enhanced {
        background: var(--card-bg);
        border-top-color: var(--border);
    }

    /* Skeleton */
    .m-skeleton-card {
        background: #334155;
    }

    .m-skeleton-pulse {
        background: #334155 !important;
    }

    /* Gecikmiş/Onay kart renkleri */
    .gorev-card-gecikmi {
        background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, var(--card-bg) 30%);
    }

    .gorev-card-onay {
        background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, var(--card-bg) 30%);
    }

    /* Chip'ler */
    .gorev-chip {
        background: #334155;
        color: var(--text-secondary);
    }

    /* Radio */
    .m-radio-label {
        background: #0f172a;
        border-color: #334155;
        color: var(--text-secondary);
    }

    /* Soru */
    .m-soru-cevap {
        background: #0f172a;
        border-color: #334155;
    }

    /* Kontrol listesi */
    .m-kl-grup-header {
        background: #0f172a;
    }

    .m-kl-stats-row {
        background: #0f172a;
    }

    /* Modal */
    .m-modal {
        background: var(--card-bg);
    }

    .m-modal-close {
        background: rgba(255,255,255,0.1);
        color: var(--text-secondary);
    }

    /* Info row */
    .m-info-row {
        border-bottom-color: var(--border);
    }

    /* Select dark ikon */
    select.m-form-input {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5L8 12l6.5-6.5'/%3E%3C/svg%3E");
    }

    /* Badge'ler */
    .badge-primary { background: rgba(99,102,241,0.2); }
    .badge-secondary { background: #334155; color: #94a3b8; }

    /* Image */
    .m-image-item {
        background: #334155;
    }

    .m-image-add {
        border-color: #475569;
    }

    /* Empty state */
    .m-empty-icon {
        background: #334155;
    }

    .m-empty-icon-success {
        background: rgba(16, 185, 129, 0.15);
    }

    /* İstatistik */
    .m-soru-stats {
        background: #0f172a;
    }

    /* Görevlerim tab */
    .m-tabs-gorevlerim {
        background: var(--card-bg);
    }

    .m-tab-gorevlerim:not(.active) {
        color: var(--text-secondary);
    }

    /* Fatura sayfası */
    .m-fatura-gorev-info,
    .m-fatura-section {
        background: var(--card-bg);
    }

    .m-fatura-list-item,
    .m-hizmet-satir {
        background: #0f172a;
    }

    /* Tamamlanan kart */
    .gorev-card-tamamlanan {
        background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, var(--card-bg) 30%);
    }

    /* Bildirim kart */
    .m-bildirim-card {
        background: var(--card-bg);
    }
    .m-bildirim-unread {
        background: #0f172a;
    }

    /* Bottom sheet */
    .m-bottom-sheet {
        background: var(--card-bg);
    }
    .m-bottom-sheet-option {
        background: #0f172a;
    }
    .m-bottom-sheet-option:hover {
        background: #1e293b;
    }

    /* Görev detay modal */
    .m-gorev-detay-section {
        border-bottom-color: #1e293b;
    }

    /* Password form */
    .m-password-form .m-input {
        background: #0f172a;
        border-color: #1e293b;
    }
}

/* ==================== BİLDİRİM ZELİ + BADGE ==================== */

.m-notification-bell {
    position: relative;
}

.m-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== HEADER AVATAR IMG ==================== */

.m-header-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.m-header-avatar-btn {
    overflow: hidden;
}

/* ==================== PROFİL AVATAR EDİT ==================== */

.m-profil-avatar-edit {
    position: relative;
    cursor: pointer;
}

.m-profil-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.m-profil-avatar-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ==================== PAROLA FORM ==================== */

.m-password-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-password-form .m-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

.m-input-icon-wrap {
    position: relative;
}

.m-input-icon-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.m-input-icon-wrap > .m-input {
    padding-left: 36px;
}

/* ==================== ORT. SÜRE STAT KARTI ==================== */

.m-stat-ort-sure-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
}

.m-stat-ort-sure-card .m-stat-icon {
    color: rgba(255,255,255,0.3);
}

.m-stat-ort-sure-card .m-stat-label {
    color: rgba(255,255,255,0.8);
}

/* ==================== BOTTOM SHEET ==================== */

.m-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s ease;
}

.m-bottom-sheet-overlay.active {
    background: rgba(0,0,0,0.5);
}

.m-bottom-sheet {
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 8px 16px calc(env(safe-area-inset-bottom, 16px) + 16px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.m-bottom-sheet-overlay.active .m-bottom-sheet {
    transform: translateY(0);
}

.m-bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 auto 12px;
}

.m-bottom-sheet-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.m-bottom-sheet-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.m-bottom-sheet-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.m-bottom-sheet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border: none;
    background: var(--card-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
    width: 100%;
}

.m-bottom-sheet-option:hover,
.m-bottom-sheet-option:active {
    background: var(--hover-bg);
}

.m-bottom-sheet-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.m-bottom-sheet-option-text {
    flex: 1;
    min-width: 0;
}

.m-bottom-sheet-option-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.m-bottom-sheet-option-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.m-bottom-sheet-cancel {
    width: 100%;
    padding: 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
}

.m-bottom-sheet-cancel:hover {
    background: var(--hover-bg);
}

/* ==================== GÖREV DETAY MODAL ==================== */

.m-gorev-detay-modal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.m-gorev-detay-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.m-gorev-detay-section:last-child {
    border-bottom: none;
}

.m-gorev-detay-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.m-gorev-detay-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* ==================== BİLDİRİMLER SAYFASI ==================== */

.m-bildirim-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 16px;
}

.m-bildirim-unread-count {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.m-bildirim-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    background: var(--card-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    position: relative;
}

.m-bildirim-card:active {
    transform: scale(0.98);
}

.m-bildirim-unread {
    background: rgba(79, 70, 229, 0.06);
    border-left: 3px solid var(--primary);
}

.m-bildirim-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.m-bildirim-card-content {
    flex: 1;
    min-width: 0;
}

.m-bildirim-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.m-bildirim-card-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-bildirim-card-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.m-bildirim-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

/* ==================== TAB HAS-ERROR STİLLERİ ==================== */

.m-tab-enhanced.has-error {
    color: var(--danger);
}

.m-tab-enhanced.has-error i {
    color: var(--danger);
}

.m-tab-enhanced.active.has-error {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

.m-tab-enhanced.active.has-error::after {
    background: linear-gradient(90deg, var(--danger), #f87171);
}

/* ==================== ÖZET TAB STİLLERİ ==================== */

.m-ozet-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-ozet-warnings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.m-ozet-warning {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid var(--danger);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.m-ozet-warning:hover,
.m-ozet-warning:active {
    background: rgba(239, 68, 68, 0.12);
}

.m-ozet-warning-header {
    font-size: 0.85rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-ozet-warning-header i {
    font-size: 0.9rem;
}

.m-ozet-warning-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    padding-left: 22px;
}

.m-ozet-ready {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 3px solid var(--success);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 8px;
}

.m-ozet-ready i {
    font-size: 1.2rem;
}

.m-ozet-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.m-ozet-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-ozet-section-title i {
    font-size: 0.8rem;
    opacity: 0.7;
}
