/* HBYS - Hastane Bilgi Yönetim Sistemi CSS */

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
}

/* Header ve Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Ana Sayfa Kartları */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
}

.card-body {
    padding: 1.5rem;
}

/* Formlar */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
}

/* Butonlar */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Tablolar */
.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Uyarı Mesajları */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Jumbotron */
.jumbotron {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .jumbotron {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* Özel Modül Stilleri */

/* Hasta Modülü */
.patient-info {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Doktor Modülü */
.doctor-schedule {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Randevu Modülü */
.appointment-slot {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.appointment-slot.available {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.appointment-slot.booked {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}

.appointment-slot:hover {
    transform: scale(1.05);
}

/* Laboratuvar Modülü */
.lab-result {
    background-color: #fff;
    border-left: 4px solid #6c757d;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.lab-result.abnormal {
    border-left-color: #dc3545;
}

.lab-result.normal {
    border-left-color: #198754;
}

/* Eczane Modülü */
.medication-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.medication-item .stock-low {
    color: #dc3545;
    font-weight: bold;
}

.medication-item .stock-ok {
    color: #198754;
}

/* Login Sayfası */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 3rem;
    color: #0d6efd;
}

/* Dashboard İstatistik Kartları */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.stat-card .stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 4rem;
    opacity: 0.3;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-card .stat-title {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 10px;
}

.stat-card.blue {
    background: linear-gradient(45deg, #4099ff, #73b4ff);
}

.stat-card.green {
    background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}

.stat-card.orange {
    background: linear-gradient(45deg, #FFB64D, #ffcb80);
}

.stat-card.red {
    background: linear-gradient(45deg, #FF5370, #ff869a);
}

/* Yazdırma Stilleri */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background-color: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}