/* ET Tahta Envanter Yönetim Sistemi - Özel Stiller */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper - flex grow ile footer'ı alta it */
body > .container,
body > div.container,
body > main,
body > .wrapper {
    flex: 1;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    flex-shrink: 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15) !important;
}

.card-title {
    font-weight: 600;
    color: #333;
}

/* Dashboard Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border-radius: 10px;
}

.card.bg-primary .card-title,
.card.bg-success .card-title,
.card.bg-warning .card-title,
.card.bg-info .card-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

/* Forms */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.nav-tabs .nav-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Login Page */
.card.shadow {
    border-radius: 15px;
    border: none;
}

/* Footer - En alta sabitle ve bitişik yap */
footer {
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
    margin-bottom: 0;
}

/* Footer'daki Bootstrap margin class'larını override et */
footer.mt-5,
footer.mt-4,
footer.mt-3 {
    margin-top: auto !important;
}

/* Container'ların alt margin'ini ayarla */
body > .container {
    padding-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card.bg-primary .card-title,
    .card.bg-success .card-title,
    .card.bg-warning .card-title,
    .card.bg-info .card-title {
        font-size: 1.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Input alanları büyük harf (e-posta, şifre ve kullanıcı adı hariç) */
input[type="text"]:not([name*="email"]):not([id*="email"]):not([name*="sifre"]):not([id*="sifre"]):not([name*="kullanici_adi"]):not([id*="kullanici_adi"]):not([name*="username"]):not([id*="username"]):not([type="password"]),
input[type="tel"]:not([name*="email"]):not([id*="email"]):not([name*="sifre"]):not([id*="sifre"]):not([name*="kullanici_adi"]):not([id*="kullanici_adi"]):not([name*="username"]):not([id*="username"]),
textarea:not([name*="email"]):not([id*="email"]):not([name*="sifre"]):not([id*="sifre"]):not([name*="kullanici_adi"]):not([id*="kullanici_adi"]):not([name*="username"]):not([id*="username"]) {
    text-transform: uppercase;
}

/* E-posta, şifre ve kullanıcı adı alanları normal */
input[type="email"],
input[type="password"],
input[name*="email"],
input[id*="email"],
input[name*="sifre"],
input[id*="sifre"],
input[name*="kullanici_adi"],
input[id*="kullanici_adi"],
input[name*="username"],
input[id*="username"] {
    text-transform: none !important;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* File Input */
.form-control[type="file"] {
    padding: 0.375rem;
}

/* Border Bottom for Dynamic Rows */
.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Kayıt Formu Satırları - Kompakt Görünüm */
.et-satir, .bt-satir {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    flex-wrap: nowrap;
    min-height: 32px;
}

.et-satir .form-label,
.bt-satir .form-label {
    display: none;
}

.et-satir .form-control-sm,
.bt-satir .form-control-sm,
.et-satir .form-select-sm,
.bt-satir .form-select-sm {
    padding: 0.15rem 0.3rem;
    font-size: 0.75rem;
    line-height: 1.3;
    height: auto;
}

.et-satir .btn-sm,
.bt-satir .btn-sm {
    padding: 0.15rem;
    font-size: 0.75rem;
}

.et-satir .col,
.bt-satir .col {
    min-width: 0;
}

.et-satir .col-auto,
.bt-satir .col-auto {
    flex-shrink: 0;
}

/* Tek satırda kalması için */
.et-satir .row,
.bt-satir .row {
    flex-wrap: nowrap;
    overflow-x: auto;
}

@media (max-width: 1400px) {
    .et-satir, .bt-satir {
        overflow-x: auto;
    }
}

/* Icon Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

/* File Input Label Styling */
.file-input-label {
    text-align: center;
    padding: 0.15rem 0.3rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    transition: all 0.2s;
    display: inline-block !important;
    width: 100%;
    min-height: 28px;
}

.file-input-label:hover {
    background-color: #f8f9fa;
    border-color: #86b7fe;
}

.file-input-display {
    display: inline-block !important;
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
}

.file-input-display i {
    font-size: 0.9rem;
}

.file-input-text {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    font-size: 0.75rem;
    justify-content: center;
    width: 100%;
}

.file-input-label .d-none {
    display: none !important;
}

.file-input-label a {
    display: inline-block;
    text-decoration: none;
}

/* Dosya İndirme Linkleri - Renkli Iconlar */
.file-download-link {
    display: inline-block;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s;
    cursor: pointer;
}

.file-download-link:hover {
    transform: scale(1.3);
    text-decoration: none;
}

.file-download-yesil {
    color: #75b798 !important; /* Açık yeşil */
}

.file-download-yesil:hover {
    color: #5a9f7a !important;
}

.file-download-kirmizi {
    color: #f5a5a5 !important; /* Açık kırmızı */
}

.file-download-kirmizi:hover {
    color: #f08080 !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Okul Bilgileri Sekmesi - Minimum Boşluk */
#okul .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

#okul .form-label.small {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

#okul .mb-1 {
    margin-bottom: 0.25rem !important;
}

#okul .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

#okul .card-body {
    padding: 1rem;
}

#okul .row {
    margin-bottom: 0;
}

/* ET Satır Renkleri */
.et-satir-yesil {
    background-color: #d1e7dd !important;
    transition: background-color 0.3s ease;
}

.et-satir-kirmizi {
    background-color: #f8d7da !important;
    transition: background-color 0.3s ease;
}

/* BT Satır Renkleri */
.bt-satir-yesil {
    background-color: #d1e7dd !important;
    transition: background-color 0.3s ease;
}

/* İnternet Satır Renkleri */
.internet-satir-yesil {
    background-color: #d1e7dd !important;
    transition: background-color 0.3s ease;
}

/* Okul Bilgileri Form Alanları Renkleri */
#okul .okul-alan-dolu,
#okul input.okul-alan-dolu,
#okul select.okul-alan-dolu,
#okul textarea.okul-alan-dolu {
    background-color: #d1e7dd !important; /* Açık yeşil */
    transition: background-color 0.3s ease;
}

#okul .okul-alan-bos,
#okul input.okul-alan-bos,
#okul select.okul-alan-bos,
#okul textarea.okul-alan-bos {
    background-color: #f8d7da !important; /* Açık kırmızı */
    transition: background-color 0.3s ease;
}

