/* ============================================================
   EmanetApp - Ana Stil Dosyası (CSS)
   Sistem Analizi ve Veritabanı Dersleri - Akademik Ödev
   ============================================================
   Tasarım Konsepti: Modern dark tema, glassmorphism kartlar,
   gradient butonlar, micro-animasyonlar.
   ============================================================ */

/* ==================== CSS DEĞİŞKENLERİ ==================== */
:root {
    color-scheme: dark;
    /* Ana renkler */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Vurgu renkleri */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-teal: #14b8a6;
    --accent-teal-glow: rgba(20, 184, 166, 0.3);

    /* Durum renkleri */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.15);

    /* Metin renkleri */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Kenar ve gölge */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Boyutlar */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Tipografi */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================== AYDINLIK MOD DEĞİŞKENLERİ ==================== */
[data-theme="light"] {
    color-scheme: light;
    /* Ana renkler - Aydınlık mod */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.03);

    /* Metin renkleri - Aydınlık mod */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Kenar ve gölge - Aydınlık mod */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    /* Durum renkleri arka plan - Aydınlık mod */
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info-bg: rgba(59, 130, 246, 0.1);
}

/* ==================== RESET & GLOBAL ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* ==================== NAVİGASYON ==================== */
.navbar {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-accent,
.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.8rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.trust-score {
    font-size: 0.75rem;
    color: var(--warning);
}

.logout-btn {
    color: var(--danger) !important;
    font-size: 0.8rem;
}

/* ==================== FLASH MESAJLAR ==================== */
.flash-container {
    max-width: 700px;
    margin: 1rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    animation: slideDown 0.4s ease;
    border: 1px solid;
}

.flash-success {
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.flash-danger {
    background: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.flash-warning {
    background: var(--warning-bg);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.flash-info {
    background: var(--info-bg);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.flash-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

/* ==================== ANA İÇERİK ==================== */
.main-content {
    flex: 1;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                var(--bg-primary);
}

/* Arka plan parçacık animasyonları */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 60%; top: 30%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 3s; animation-duration: 20s; }

.landing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-hero {
    margin-bottom: 4rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-slogan {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Özellik kartları */
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== AUTH SAYFALARI ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-select {
    padding: 0.75rem 1rem;
    background: #1a1f2e; /* Daha solid bir koyu renk */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none; /* Safari/Chrome için varsayılan stili kaldır */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Dropdown (select) seçenekleri için kesin çözümler */
.form-group select option {
    background-color: #111827 !important; /* Arka planı zorla */
    color: #f1f5f9 !important; /* Metni zorla */
    padding: 10px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--warning);
    margin-top: 0.2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
}

/* ==================== BUTONLAR ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
    color: white;
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-teal), #0d9488);
    color: white;
    box-shadow: 0 4px 15px var(--accent-teal-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-teal-glow);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
    color: white;
}

.btn-lg {
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* ==================== DASHBOARD ==================== */
.dashboard-page,
.requests-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* ==================== CİHAZ KARTLARI ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.device-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.device-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0;
}

.card-category {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-glass);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.card-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.status-available {
    background: var(--success-bg);
    color: var(--success);
}

.status-borrowed {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-pending {
    background: var(--info-bg);
    color: var(--info);
}

.card-body {
    padding: 1rem 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-owner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.owner-trust {
    color: var(--warning);
}

.card-footer {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
}

.borrow-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.date-input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.8rem;
    outline: none;
}

.date-input:focus {
    border-color: var(--accent-teal);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-glass);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.6s ease;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-message {
    color: var(--accent-secondary);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ==================== BENİM EŞYALARIM ==================== */
.my-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.my-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.my-item-row:hover {
    border-color: var(--border-hover);
}

.my-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.my-item-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.my-item-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-sm);
}

.my-item-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* ==================== TALEPLER SAYFASI ==================== */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.request-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.request-device h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.request-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.request-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.request-body {
    padding: 1rem 1.5rem;
}

.request-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.request-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.trust-highlight {
    color: var(--warning);
}

.request-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ==================== BİLDİRİM BADGE ==================== */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 3px;
    line-height: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==================== FAVORİ BUTONU ==================== */
.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: transform 0.2s ease;
    line-height: 1;
}

.fav-btn:hover {
    transform: scale(1.3);
}

.fav-btn.fav-active {
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ==================== KART RESİM ÖNİZLEME ==================== */
.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.device-card:hover .card-image img {
    transform: scale(1.05);
}

/* ==================== EŞYA RESİM GRID (Edit Sayfası) ==================== */
.item-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.item-image-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 1;
}

.item-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 0.2rem 0.4rem !important;
    font-size: 0.7rem !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.item-image-card:hover .image-delete-btn {
    opacity: 1;
}

/* ==================== BİLDİRİM LİSTESİ ==================== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    animation: fadeInUp 0.4s ease;
}

.notification-item.unread {
    border-left: 3px solid var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item:hover {
    border-color: var(--border-hover);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.notification-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-mark {
    flex-shrink: 0;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.8rem !important;
}

/* ==================== PROFİL SAYFASI ==================== */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    animation: fadeInUp 0.5s ease;
}

.profile-header-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar-area {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.profile-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    font-size: 0.8rem !important;
    cursor: pointer;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.profile-email,
.profile-join,
.profile-dept {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.profile-about {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
    font-style: italic;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== ANİMASYONLAR ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) translateX(-10px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-40px) translateX(20px);
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* ==================== RESPONSIVE TASARIM ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0;
        gap: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        min-width: 70px;
    }

    .nav-icon {
        font-size: 1.1rem;
        margin-right: 0;
    }

    .nav-user {
        gap: 0.5rem;
    }

    .nav-user .nav-link {
        min-width: auto;
        padding: 0.4rem 0.6rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slogan {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .request-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .request-actions {
        flex-direction: column;
    }

    .borrow-form {
        flex-direction: column;
    }

    .my-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .user-badge {
        display: none;
    }

    .profile-header-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .landing-features {
        grid-template-columns: 1fr;
    }

    .auth-container {
        padding: 1.5rem;
    }

    .dashboard-page,
    .requests-page {
        padding: 1rem;
    }

    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== 2FA DOĞRULAMA SAYFASI ==================== */

/* Login sayfasındaki 2FA bilgilendirme notu */
.auth-2fa-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: #a5b4fc;
    line-height: 1.5;
}

.auth-2fa-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Doğrulama sayfası konteyner */
.verify-container {
    max-width: 460px;
}

/* Kilit ikonu animasyonu */
.verify-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.verify-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse2fa 2s ease-in-out infinite;
}

.verify-icon {
    font-size: 2rem;
}

@keyframes pulse2fa {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); 
    }
}

/* Doğrulama kodu input alanı - Büyük ve belirgin */
.verify-input {
    text-align: center !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.75rem !important;
    padding: 1rem !important;
    font-family: 'Inter', monospace !important;
    background: #12162a !important;
    border: 2px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.3s ease !important;
}

.verify-input:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px var(--accent-glow), 0 0 30px rgba(99, 102, 241, 0.15) !important;
}

.verify-input::placeholder {
    letter-spacing: 0.5rem;
    font-size: 1.5rem;
    color: #2a3050 !important;
}

/* Geri sayım zamanlayıcısı */
.verify-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #6ee7b7;
    transition: all 0.5s ease;
}

.timer-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Son 60 saniye - uyarı rengi */
.verify-timer.timer-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
    animation: timerBlink 1s ease-in-out infinite;
}

/* Süre dolmuş */
.verify-timer.timer-expired {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

@keyframes timerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Doğrulama sayfası alt bilgi */
.verify-footer {
    margin-top: 1.25rem;
}

/* Mobil uyum */
@media (max-width: 480px) {
    .verify-input {
        font-size: 1.5rem !important;
        letter-spacing: 0.5rem !important;
    }

    .verify-icon-circle {
        width: 60px;
        height: 60px;
    }

    .verify-icon {
        font-size: 1.6rem;
    }
}

/* ==================== TEMA GEÇİŞ BUTONU ==================== */

/* Toggle buton konteyner */
.theme-toggle {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.theme-toggle-icon {
    font-size: 1.15rem;
    transition: transform 0.4s ease;
    line-height: 1;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(30deg);
}

/* Landing sayfası için sabit toggle (sağ üst köşe) */
.theme-toggle-fixed {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-md);
}

/* ==================== AYDINLIK MOD - HARDCODED RENK DÜZELTMELERİ ==================== */

/* Navbar arka plan */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Nav link renkleri */
[data-theme="light"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
}

/* Form input arka planları */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-select {
    background: #ffffff;
    border-color: #e2e8f0;
    color: var(--text-primary);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .form-group select option {
    background-color: #ffffff !important;
    color: #1e293b !important;
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: #94a3b8;
}

/* Landing page arka plan */
[data-theme="light"] .landing-page {
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
                var(--bg-primary);
}

[data-theme="light"] .particle {
    background: var(--accent-primary);
    opacity: 0.15;
}

/* Auth sayfa arka plan */
[data-theme="light"] .auth-page {
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                var(--bg-primary);
}

/* Auth container */
[data-theme="light"] .auth-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* 2FA doğrulama input */
[data-theme="light"] .verify-input {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .verify-input:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 0 30px rgba(99, 102, 241, 0.08) !important;
}

[data-theme="light"] .verify-input::placeholder {
    color: #cbd5e1 !important;
}

/* Flash mesajları */
[data-theme="light"] .flash-success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

[data-theme="light"] .flash-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

[data-theme="light"] .flash-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

[data-theme="light"] .flash-info {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

/* Bildirim okunmamış */
[data-theme="light"] .notification-item.unread {
    background: rgba(99, 102, 241, 0.04);
}

/* Mobil nav link arka plan */
@media (max-width: 768px) {
    [data-theme="light"] .nav-link {
        background: rgba(0, 0, 0, 0.03);
    }
}

/* 2FA notu */
[data-theme="light"] .auth-2fa-note {
    background: rgba(99, 102, 241, 0.05);
    color: #4f46e5;
}

/* Date input */
[data-theme="light"] .date-input {
    background: #ffffff;
    border-color: #e2e8f0;
    color: var(--text-primary);
}

/* Logo ve accent gradient metinler */
[data-theme="light"] .logo-accent,
[data-theme="light"] .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logout butonu */
[data-theme="light"] .logout-btn {
    color: var(--danger) !important;
}

/* Genel geçiş animasyonu - Tema değişirken yumuşak geçiş */
html, body,
.navbar, .auth-page, .landing-page,
.auth-container, .device-card, .feature-card,
.request-card, .notification-item, .profile-card,
.stat-item, .my-item-row, .form-group input,
.form-group textarea, .form-group select, .footer,
.flash-message, .btn, .nav-link, .user-badge,
.verify-input, .verify-timer, .empty-state {
    transition: background 0.35s ease,
                color 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}
