@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FFD400; /* ŞOK Sarısı */
    --secondary: #E3000F; /* ŞOK Kırmızısı */
    --bg-color: #f4f7fe;
    --text-dark: #2b3674;
    --text-light: #a3aed1;
    --white: #ffffff;
    --success: #05cd99;
    --card-shadow: 0px 4px 18px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); display: flex; min-height: 100vh; overflow-x: hidden; }

/* Sidebar */
.sidebar { width: 260px; background: var(--white); height: 100vh; position: fixed; box-shadow: var(--card-shadow); padding: 20px; z-index: 100; transition: 0.3s; }
.logo-area { display: flex; align-items: center; justify-content: center; margin-bottom: 30px; font-weight: 700; font-size: 24px; color: var(--secondary); text-align: center; }
.logo-area span { color: var(--primary); text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
.nav-menu { list-style: none; }
.nav-menu li { margin-bottom: 10px; }
.nav-menu a { display: flex; align-items: center; padding: 12px 15px; text-decoration: none; color: var(--text-light); border-radius: 10px; font-weight: 500; transition: all 0.3s ease; }
.nav-menu a i { margin-right: 12px; font-size: 18px; }
.nav-menu a:hover, .nav-menu a.active { background: var(--secondary); color: var(--white); }
.nav-menu a:hover i, .nav-menu a.active i { color: var(--primary); }

/* Main Content */
.main-content { margin-left: 260px; padding: 30px; width: calc(100% - 260px); transition: 0.3s; }
.top-bar { display: flex; justify-content: space-between; align-items: center; background: var(--white); padding: 15px 25px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); margin-bottom: 30px; }
.user-info { display: flex; align-items: center; gap: 15px; font-weight: 600; }
.btn-logout { background: var(--text-dark); color: white; padding: 8px 15px; border-radius: 8px; text-decoration: none; font-size: 14px; }

/* Dashboard Cards */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.card { background: var(--white); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); display: flex; justify-content: space-between; align-items: center; transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card-info h3 { color: var(--text-light); font-size: 14px; font-weight: 500; }
.card-info h2 { color: var(--text-dark); font-size: 28px; margin-top: 5px; }
.card-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.bg-primary { background: rgba(255, 212, 0, 0.2); color: #d6b300; }
.bg-secondary { background: rgba(227, 0, 15, 0.1); color: var(--secondary); }

/* Tables */
.table-container { background: var(--white); padding: 20px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); overflow-x: auto; margin-bottom: 20px;}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { color: var(--text-light); font-weight: 500; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block;}
.badge.bekliyor { background: #fff3cd; color: #856404; }
.badge.tamamlandi { background: #d4edda; color: #155724; }
.badge.sabit { background: #e2e3e5; color: #383d41; }
.badge.gunluk { background: #d1ecf1; color: #0c5460; }

/* Buttons & Forms */
.btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; text-decoration: none; transition: 0.3s; display: inline-block; }
.btn-primary { background: var(--primary); color: var(--secondary); font-weight: 600; }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-success { background: var(--success); color: white; }
.form-group { margin-bottom: 15px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; transition: 0.3s; font-family: 'Poppins'; }
.form-control:focus { border-color: var(--secondary); }

/* Mobile & Login */
.login-body { justify-content: center; align-items: center; background: var(--secondary); }
.login-box { background: white; padding: 40px; border-radius: var(--border-radius); width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
#installAppBtn { display: none; background: var(--primary); color: var(--secondary); margin-bottom: 20px; width: 100%; font-weight: bold; }

@media (max-width: 768px) {
    .sidebar { left: -260px; }
    .sidebar.active { left: 0; }
    .main-content { margin-left: 0; width: 100%; }
    .menu-toggle { display: block; font-size: 24px; cursor: pointer; }
}

@media print {
    .sidebar, .top-bar, .btn { display: none !important; }
    .main-content { margin: 0 !important; width: 100% !important; padding: 0 !important; }
    body { background: white; }
    .table-container { box-shadow: none; border: 1px solid #ddd; }
}