/* --- GENEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* --- LOGIN EKRANI STILLERI --- */
.login-body {
    background: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center; /* Sadece Login ekranını dikey ortala */
    justify-content: center; /* Sadece Login ekranını yatay ortala */
    overflow: hidden;
}
.login-container {
    background: #ffffff; padding: 40px; border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5); width: 100%; max-width: 400px;
}
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h1 { color: #0A192F; font-size: 28px; letter-spacing: 2px; font-weight: 800; }
.login-header p { color: #64748B; font-size: 14px; margin-top: 5px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: #172A45; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.input-group input {
    width: 100%; padding: 12px 15px; border: 1px solid #CBD5E1;
    border-radius: 6px; font-size: 14px; transition: 0.3s;
}
.input-group input:focus { border-color: #2563EB; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.remember-me { display: flex; align-items: center; margin-bottom: 20px; font-size: 14px; color: #475569; }
.remember-me input { margin-right: 8px; cursor: pointer; }
.btn-login {
    width: 100%; padding: 12px; background: #2563EB; color: white;
    border: none; border-radius: 6px; font-size: 16px; font-weight: bold;
    cursor: pointer; transition: background 0.3s;
}
.btn-login:hover { background: #1D4ED8; }
.error-msg { background: #FEE2E2; color: #DC2626; padding: 10px; border-radius: 6px; margin-bottom: 20px; text-align: center; font-size: 14px; display: none; }

/* --- DASHBOARD EKRANI STILLERI --- */
.dashboard-body {
    background: #F1F5F9;
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    align-items: stretch; /* Dikeyde ekranın tamamını kaplaması için KİLİT KOD */
    justify-content: flex-start; /* İçeriği sola yasla */
}

/* Sidebar Menü */
.sidebar {
    width: 260px; background: #0A192F; color: white; display: flex; flex-direction: column; transition: 0.3s;
}
.sidebar-header { padding: 25px 20px; font-size: 22px; font-weight: 800; border-bottom: 1px solid #1e293b; letter-spacing: 1px; }
.sidebar-menu { list-style: none; padding: 20px 0; flex-grow: 1; }
.sidebar-menu li a {
    display: block; padding: 15px 25px; color: #94A3B8; text-decoration: none;
    font-size: 15px; border-left: 4px solid transparent; transition: 0.3s;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: #172A45; color: white; border-left-color: #3B82F6;
}
.sidebar-footer { padding: 20px; border-top: 1px solid #1e293b; }
.sidebar-footer a { color: #EF4444; text-decoration: none; font-weight: bold; font-size: 14px; }

/* Main Content */
.main-content { flex-grow: 1; display: flex; flex-direction: column; overflow-y: auto; }
.topbar { background: white; padding: 20px 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.user-info { font-weight: 600; color: #334155; }
.content-area { padding: 30px; }

/* Tablo Tasarımı */
.data-card { background: white; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow: hidden; }
.data-header { padding: 20px; border-bottom: 1px solid #E2E8F0; background: #F8FAFC; font-weight: bold; color: #1E293B; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 15px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid #F1F5F9; }
table th { background: #F8FAFC; color: #64748B; font-weight: 600; text-transform: uppercase; font-size: 12px; }
table tr:hover { background: #F8FAFC; }
.price-tag { color: #059669; font-weight: bold; }

/* Durum Renkleri ve İstatistik Kutuları */
.status-sold { color: #059669; font-weight: bold; background: #D1FAE5; padding: 4px 8px; border-radius: 4px; }
.status-cancelled { color: #DC2626; font-weight: bold; background: #FEE2E2; padding: 4px 8px; border-radius: 4px; }

/* Yeni Gradient Stat Box Tasarımı */
.stat-container { display: flex; gap: 20px; margin-bottom: 25px; }
.stat-box {
    flex: 1; border-radius: 12px; padding: 25px; color: white;
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1); border: none; min-width: unset; margin: 0;
}
.stat-box.blue-gradient { background: linear-gradient(135deg, #7F7FD5 0%, #86A8E7 50%, #91EAE4 100%); }
.stat-box.orange-gradient { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.stat-icon {
    width: 55px; height: 55px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7);
    display: flex; justify-content: center; align-items: center; font-size: 22px;
}
.stat-content h3 { font-size: 13px; font-weight: normal; margin-bottom: 5px; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 1px; }
.stat-content p { font-size: 26px; font-weight: bold; color: white; margin: 0; }

/* --- MODAL (POPUP) FORMU TASARIMI --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.modal-content { background-color: #fff; padding: 25px; border-radius: 12px; width: 90%; max-width: 700px; max-height: 85vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; color: #94A3B8; cursor: pointer; transition: 0.2s; }
.close-btn:hover { color: #DC2626; }
.modal-header { font-size: 18px; font-weight: 800; margin-bottom: 20px; border-bottom: 2px solid #F1F5F9; padding-bottom: 10px; color: #0A192F; }
.detay-tablo { width: 100%; border-collapse: collapse; }
.detay-tablo th, .detay-tablo td { padding: 12px; border-bottom: 1px solid #F1F5F9; text-align: left; font-size: 13px; }
.detay-tablo th { background: #F8FAFC; color: #64748B; font-weight: bold; }

/* Tıklanabilir Satır Efekti */
.satir-tiklanabilir { cursor: pointer; transition: 0.2s; }
.satir-tiklanabilir:hover { background-color: #F1F5F9; transform: scale(1.005); }

/* --- ANTISATIS ANİMASYONLU GRADIENT --- */
.animated-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #60A5FA 25%, #3B82F6 50%, #ffffff 75%, #60A5FA 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    font-weight: 800;
}

@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
