/* Ogólne style */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Nagłówki */
h1, h2, h3 {
    margin-bottom: 30px;
    color: #343a40;
}

h1 { font-size: 2.5rem; font-weight: bold; }
h2 { font-size: 2rem;    }
h3 { font-size: 1.75rem; }

/* Style kafelków */
.tile {
    display: block;
    text-align: center;
    padding: 30px 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    color: #000;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    text-decoration: none;
}
.tile-icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: #fff;
    width: 100px;
    height: 100px;
    background-color: #007bff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.tile-title     { font-size: 20px; font-weight: bold; margin-top: 10px; color: #000; }
.tile-equipment .tile-icon { background-color: #28a745; }
.tile-users     .tile-icon { background-color: #17a2b8; }
.tile-okregi    .tile-icon { background-color: #ffc107; }
.tile-logout    .tile-icon { background-color: #dc3545; }

/* Style dla modali */
.modal-success .modal-content { border: 2px solid #28a745; }
.modal-danger  .modal-content { border: 2px solid #dc3545; }
.modal-warning .modal-content { border: 2px solid #ffc107; }
.modal-info    .modal-content { border: 2px solid #17a2b8; }

/* Karty */
.card        { border: none; border-radius: .5rem; box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.card-body   { padding: 1.5rem; }
.card-title  { font-size: 1.5rem; color: #343a40; }
.card-text   { font-size: 1.1rem; color: #495057; }

/* Nagłówek strony */
.bg-light  { background-color: #ffffff!important; border-radius: .5rem; box-shadow: 0 4px 6px rgba(0,0,0,.1); padding: 2rem; }
.display-5 { font-size: 2.5rem; font-weight: bold; color: #343a40; }
.fw-bold   { font-weight: 700!important; }
.fs-4      { font-size: 1.25rem; color: #1069ae; }   /* poprawiony kolor */

/* Przyciski */
.btn-lg { padding: .75rem 1.5rem; font-size: 1.1rem; border-radius: .3rem; }

.btn-primary        { background-color: #007bff; border-color: #007bff; }
.btn-primary:hover  { background-color: #0056b3; border-color: #0056b3; }

.btn-secondary        { background-color: #1069ae; border-color: #1069ae; } /* poprawiony kolor */
.btn-secondary:hover  { background-color: #5a6268;  border-color: #545b62; }

.btn-info        { background-color: #17a2b8; border-color: #17a2b8; color:#fff; }
.btn-info:hover  { background-color: #138496; border-color: #117a8b; }

.btn-danger        { background-color: #dc3545; border-color: #dc3545; }
.btn-danger:hover  { background-color: #c82333; border-color: #bd2130; }

/* Pasek nawigacyjny */
.navbar        { box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.navbar-brand  { font-weight: bold; font-size: 1.5rem; color:#fff!important; }
.nav-link      { font-size: 1.1rem; color:#fff!important; transition: color .2s; }
.nav-link:hover{ color:#d4d4d4!important; }
.navbar-text   { font-size: 1rem; }

/* Alerty */
.alert        { border-radius:.5rem; box-shadow:0 4px 6px rgba(0,0,0,.1); padding:1rem 1.5rem; font-size:1.1rem; }
.alert-success { background-color:#d4edda; color:#155724; }
.alert-danger  { background-color:#f8d7da; color:#721c24; }
.alert-warning { background-color:#fff3cd; color:#856404; }
.alert-info    { background-color:#d1ecf1; color:#0c5460; }

/* Responsywność */
@media (max-width:576px){
    .display-5 { font-size:1.75rem; }
    .fs-4      { font-size:1.125rem; }
    .navbar-brand{ font-size:1.25rem; }
    .nav-link  { font-size:1rem; }
    .btn-lg    { font-size:1rem; padding:.5rem 1rem; }
    .tile-icon { font-size:40px; width:80px; height:80px; }
    .tile-title{ font-size:18px; }
}

/* Dodatkowe klasy narzędziowe Bootstrap-like */
.shadow-sm  { box-shadow:0 1px 2px rgba(0,0,0,.05)!important; }
.rounded-lg { border-radius:.5rem!important; }
.me-auto    { margin-right:auto!important; }
.ms-auto    { margin-left:auto!important; }
.text-white { color:#fff!important; }
.text-muted { color:#1069ae!important; }  /* poprawiony kolor */

/* Zakładki Bootstrap 5 */
.nav-tabs              { border-bottom:2px solid #dee2e6; margin-bottom:20px; }
.nav-tabs .nav-link    { border:1px solid transparent; border-top-left-radius:.5rem; border-top-right-radius:.5rem; color:#495057; background:#e9ecef; transition:background-color .3s,color .3s; padding:10px 20px; font-size:1.1rem; font-weight:500; }
.nav-tabs .nav-link:hover  { background:#dcdcdc; color:#007bff; }
.nav-tabs .nav-link.active { color:#fff; background:#1069ae; border-color:#dee2e6 #dee2e6 #fff; box-shadow:0 4px 6px rgba(0,0,0,.1); }

.tab-content { background:#fff; padding:20px; border:1px solid #dee2e6; border-top:none; border-radius:0 0 .5rem .5rem; box-shadow:0 4px 6px rgba(0,0,0,.1); }

@media (max-width:576px){
    .nav-tabs .nav-link{ font-size:1rem; padding:8px 15px; }
}

/* Wzmocnienie kolorów aktywnej zakładki */
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    font-weight:bold;
    background:#1069ae;
    color:#fff;
    border:1px solid #1069ae;
    border-bottom-color:#fff;
}

.nav-tabs .nav-link.disabled { color:#1069ae; }

/* Podkreślenie aktywnej zakładki */
.nav-tabs .nav-link.active::after{
    content:'';
    display:block;
    margin:0 auto;
    width:60%;
    padding-top:2px;
    border-bottom:3px solid #ffc107;
}

/* Animacje */
.nav-tabs .nav-link       { transition:all .3s ease-in-out; }
.nav-tabs .nav-link:hover { transform:translateY(-2px); }
.nav-tabs .nav-link.active{ transform:translateY(0); }

/* Pola wyłączone */
.disabled-field { background:#e9ecef; cursor:not-allowed; }

.status-wycofane {
    background: #adb5bd;
    color: #fff;
}
