* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f7fa; color: #333; }

/* LOGIN PAGES */
.login-page { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { width: 100%; max-width: 450px; padding: 20px; }
.login-box { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-box .logo h1 { text-align: center; color: #667eea; font-size: 36px; margin-bottom: 10px; }
.login-box .logo h2 { text-align: center; color: #666; font-size: 18px; margin-bottom: 30px; font-weight: normal; }
.login-options { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; }
.login-btn { display: block; padding: 20px; border-radius: 12px; text-decoration: none; text-align: center; font-size: 18px; font-weight: 600; transition: all 0.3s; }
.admin-btn { background: #667eea; color: white; }
.admin-btn:hover { background: #5568d3; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); }
.eczane-btn { background: #26de81; color: white; }
.eczane-btn:hover { background: #20bf6b; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(38, 222, 129, 0.3); }
.info { text-align: center; color: #666; margin-top: 20px; }

/* FORMS */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #555; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 2px solid #e1e8ed; border-radius: 8px; font-size: 15px; transition: border 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #667eea; }
.form-group small { display: block; margin-top: 5px; color: #999; font-size: 13px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.form-container { background: white; border-radius: 15px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.form-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 30px; padding-top: 20px; border-top: 2px solid #e1e8ed; }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s; }
.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5568d3; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-secondary:hover { background: #7f8c8d; }
.btn-success { background: #26de81; color: white; }
.btn-warning { background: #f39c12; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-block { width: 100%; display: block; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ALERTS */
.alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* LINKS */
.back-link { display: block; text-align: center; margin-top: 20px; color: #667eea; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ADMIN PANEL */
.admin-panel { background: #f4f7fa; min-height: 100vh; }
.admin-header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 30px; }
.header-content { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.header-content .logo h1 { color: #667eea; font-size: 24px; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: #555; text-decoration: none; font-weight: 500; padding: 8px 15px; border-radius: 6px; transition: all 0.3s; }
.main-nav a:hover { background: #667eea; color: white; }
.user-menu { display: flex; align-items: center; gap: 15px; }
.btn-logout { padding: 8px 16px; background: #e74c3c; color: white; border-radius: 6px; text-decoration: none; font-size: 14px; }
.btn-logout:hover { background: #c0392b; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); text-align: center; }
.stat-icon { font-size: 48px; margin-bottom: 15px; }
.stat-number { font-size: 36px; font-weight: bold; color: #667eea; margin-bottom: 10px; }
.stat-label { color: #999; font-size: 16px; }
.stat-card.nobetci { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.stat-card.nobetci .stat-number { color: white; }
.stat-card.nobetci .stat-label { color: rgba(255,255,255,0.9); }

/* TABLES */
.table-container { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid #e1e8ed; }
.data-table th { background: #f8f9fa; font-weight: 600; color: #555; }
.data-table tr:hover { background: #f8f9fa; }
.data-table tr.bugun-row { background: #fffbcc; font-weight: bold; }
.data-table .actions { white-space: nowrap; }
.data-table .actions a { margin-right: 5px; }

/* BADGES */
.badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* PAGE HEADER */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.page-header h1 { color: #333; font-size: 32px; }

/* QUICK ACTIONS */
.quick-actions { background: white; border-radius: 15px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.quick-actions h2 { margin-bottom: 20px; color: #333; }
.action-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 12px; text-decoration: none; transition: transform 0.3s; }
.action-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4); }
.action-btn .icon { font-size: 48px; }
.action-btn span:last-child { font-size: 16px; font-weight: 600; }

/* FILTER BOX */
.filter-box { background: white; padding: 20px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.filter-box .form-row { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.filter-box .form-group { margin: 0; flex: 1; min-width: 150px; }

/* UPLOAD */
.upload-info-box, .upload-form-box { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin-bottom: 20px; }
.upload-info-box h3, .upload-info-box h4 { color: #333; margin-bottom: 15px; }
.example-table { width: 100%; margin: 15px 0; border-collapse: collapse; }
.example-table th, .example-table td { padding: 10px; border: 1px solid #ddd; text-align: left; }
.example-table th { background: #f8f9fa; font-weight: 600; }
.tips { background: #fff3cd; border-left: 4px solid #ffc107; padding: 15px; margin: 20px 0; border-radius: 5px; }
.tips h4 { color: #856404; margin-bottom: 10px; }
.tips ul { margin-left: 20px; color: #856404; }
.tips li { margin: 5px 0; }
.file-upload { position: relative; margin-bottom: 20px; }
.file-upload input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }
.file-upload label { display: flex; flex-direction: column; align-items: center; padding: 40px; border: 3px dashed #667eea; border-radius: 12px; cursor: pointer; transition: all 0.3s; background: #f8f9fa; }
.file-upload label:hover { background: #e9ecef; border-color: #5568d3; }
.file-upload label .icon { font-size: 48px; margin-bottom: 15px; }
.file-upload label .text { font-size: 16px; color: #667eea; font-weight: 600; }

/* MISC */
input[type="checkbox"] { width: 18px; height: 18px; margin-right: 8px; cursor: pointer; }
hr { border: none; border-top: 2px solid #e1e8ed; margin: 30px 0; }
code { background: #333; color: #fff; padding: 5px 10px; border-radius: 4px; font-family: 'Courier New', monospace; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .main-nav { flex-direction: column; width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .filter-box .form-row { flex-direction: column; }
    .action-buttons { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
}
