/* BAŞELGAZ YÖNETİM SİSTEMİ - CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* TOPBAR */
.topbar {
    background: linear-gradient(135deg, #d10000 0%, #8b0000 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.topbar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* PANEL GRID */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* PANEL CARDS */
.panel-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    color: white;
    font-weight: 600;
}

.card-primary .card-header { background: linear-gradient(135deg, #1f4fd8 0%, #0d3ba8 100%); }
.card-success .card-header { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.card-warning .card-header { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }
.card-info .card-header { background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%); }
.card-danger .card-header { background: linear-gradient(135deg, #d10000 0%, #8b0000 100%); }

.card-header h3 {
    margin: 0;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

/* PERSONEL LIST */
.personel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.personel-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.personel-btn:hover {
    background: #1f4fd8;
    color: white;
    border-color: #1f4fd8;
    transform: translateX(5px);
}

.personel-kod {
    font-weight: bold;
    background: #d10000;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.personel-ad {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* MENU LINKS */
.menu-link {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 4px solid #1f4fd8;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.2s;
}

.menu-link:hover {
    background: #1f4fd8;
    color: white;
    padding-left: 25px;
}

/* KASA ÖZET */
.kasa-ozet {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.kasa-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.kasa-item:last-child {
    border-bottom: none;
}

.kasa-label {
    font-weight: 500;
    color: #666;
}

.kasa-tutar {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.kasa-sayi {
    font-size: 18px;
    font-weight: bold;
    color: #1f4fd8;
}

/* EXCEL TABLE */
.excel-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.excel-table th,
.excel-table td {
    border: 1px solid #000;
    padding: 8px;
    font-size: 13px;
    text-align: center;
}

.excel-table th {
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.excel-table th.red {
    background: #d10000;
    color: white;
}

.excel-table th.blue {
    background: #1f4fd8;
    color: white;
}

.excel-table tfoot td {
    background: #d10000;
    color: white;
    font-weight: bold;
}

.excel-table tfoot td.blue {
    background: #1f4fd8;
}

.excel-table input {
    width: 100%;
    border: none;
    text-align: center;
    background: transparent;
    padding: 5px;
    font-size: 13px;
}

.excel-table input:focus {
    outline: 2px solid #1f4fd8;
    background: #fff9e6;
}

.excel-table .readonly {
    font-weight: bold;
    background: #f8f9fa;
}

.excel-table .input-sm { min-width: 50px; }
.excel-table .input-md { min-width: 120px; }
.excel-table .input-num { min-width: 80px; }

/* FORM FOOTER */
.form-footer {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.notlar-alani {
    flex: 1;
}

.notlar-alani label {
    display: block;
    margin-bottom: 8px;
    color: #d10000;
}

.notlar-alani textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary { background: #1f4fd8; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-warning { background: #ffc107; color: #000; }
.btn-danger { background: #d10000; color: white; }
.btn-secondary { background: #6c757d; color: white; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ALERTS */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #d10000;
}

/* LOGIN PAGE */
.login-page {
    background: linear-gradient(135deg, #1f4fd8 0%, #d10000 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #d10000 0%, #8b0000 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #1f4fd8;
}

.login-footer {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    .form-footer {
        flex-direction: column;
    }
    
    .excel-table {
        font-size: 11px;
    }
    
    .excel-table th,
    .excel-table td {
        padding: 5px;
    }
}

/* UTILITY */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }