/* styles.css */
html, body {
    background-color: #c4d3da !important;
    text-align: center;
    overflow-x: auto !important;
}

body { 
  margin: 0; 
  padding: 80px 0 0 0; /* Fix dla headera zasłaniającego treść */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fcfcf9; 
  color: #13343b; 
}



.container-custom h3 {
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 550; line-height: 1.2; color: #13343b; letter-spacing: -0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
p { margin: 0 0 16px 0; }
a { color: #15acc0; text-decoration: none !important; transition: color 150ms ease; }
a:hover { color: #1d7480; }

.container-custom {

    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.header {
    overflow-x: auto;
    background: linear-gradient(135deg, #3156fc 0%, #3ae6d1 100%);
    color: white;
    padding: 5px 20px 5px 20px !important;
    font-size: 16px !important;
    box-shadow: 0px 5px 5px 0px white;
    margin-bottom: 8px;
    width: 100vw;
    height: 80px;
    display: flex;
    position: fixed;/* albo fixed */
    top: 0;
    left: 0;
    z-index: 1000;
    white-space: nowrap;
}

.header a {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
}

.header a:hover {
    text-decoration: underline;
}

.header .umow-zdalnie {
    font-size: 2rem !important;
}
.table-container {
    margin: 2rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



footer {
    color: rgb(255, 255, 255) !important;
    padding: 10px !important;
    text-align: center !important;
}

nav a {
    margin: 15px;
    padding: 5px 5px;
    text-decoration: none;
}

.logout-button {
    background-color: #ff5733; /* Kolor tła */
    color: white; /* Kolor tekstu */
    border: none; /* Brak obramowania */
    padding: 5px 20px; /* Wewnętrzny margines */
    font-size: 16px; /* Rozmiar czcionki */
    cursor: pointer; /* Kursor w postaci ręki */
    border-radius: 5px; /* Zaokrąglone rogi */
    transition: background-color 0.4s; /* Płynna zmiana koloru */
}
.login-button {
    background-color: #7bc265; /* Kolor tła */
    color: rgb(0, 0, 0); /* Kolor tekstu */
    border: none; /* Brak obramowania */
    padding: 5px 20px; /* Wewnętrzny margines */
    font-size: 16px; /* Rozmiar czcionki */
    cursor: pointer; /* Kursor w postaci ręki */
    border-radius: 5px; /* Zaokrąglone rogi */
    transition: background-color 0.4s; /* Płynna zmiana koloru */
}
.logout-button:hover {
    background-color: #ff2a00; /* Zmiana koloru przy hover */
}

.logout-button:active {
    background-color: #e60000; /* Zmiana koloru przy kliknięciu */
}

.login-button:hover {
    background-color: #14ee14bb; /* Zmiana koloru przy hover */
}

.login-button:active {
    background-color: #00e6c7; /* Zmiana koloru przy kliknięciu */
}

.umow-zdalnie {
  font-family: 'Segoe UI', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fcfcfc; /* kolor primary bootstrapowy */
  display: flex;
  align-items: left;
  gap: 10px;
  transition: all 0.3s ease;
}

.umow-zdalnie i {
  font-size: 1.8rem;
  color: #ffffff; /* zielony bootstrap */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Efekt hover */
.umow-zdalnie:hover {
  color: #fd9b6d; /* fiolet */
  cursor: pointer;
}

.umow-zdalnie:hover i {
  transform: rotate(10deg) scale(1.2);
  color: #c2672a; /* czerwony */
}

.menu {
  font-weight: bold;
  list-style: none;       /* usuwa kropki */
  margin: 0;
  padding: 0;
  gap: 5px;              /* odstępy między elementami */
}

.menu li {
  display: inline-flex;  /* każdy element w jednej linii */
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;  /* usuwa podkreślenie */
  color: #f7f7f7;
  font-weight: 500;
  transition: color 0.7s;
}

.menu a:hover {
  color: #4d0f00; /* efekt hover */
}
s {
  all: unset;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 15px;
  background: #172be02a;
  text-align: center;
  margin-left: auto;
  position: absolute;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
}


/* MOBILE */
@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #0f343fcb;
    text-align: center !important;
  }
  .menu.active {
    display: flex;
  }
  .hamburger {
    display: flex;
    top: 10px;
    right: 10px;
    z-index: 1000;
  }
}
.umow-zdalnie-link {
  display: block;
  text-align: left;
}

.umow-zdalnie {
  margin: 0;
  text-align: left;
}
.sidebar_container {
  display: flex;
  align-items: flex-start;  /* Wyrównanie do góry */
  gap: 20px;                /* Odstęp między sidebar i main */
  padding: 10px;
}

.sidebar_container {
  display: flex;           /* Ustaw układ poziomy */
  align-items: flex-start; /* Elementy wyrównane do góry */
  gap: 20px;               /* Odstęp między sidebar i zawartością */
  padding: 10px;
}

.sidebar {
  width: 350px;            /* Stała szerokość sidebaru */
  background-color: #f0f0f0;
  padding: 15px;
  box-sizing: border-box;
}


.calendar-week-section {
  flex-grow: 1;            /* Zajmuje pozostałą szerokość obok sidebaru */
  padding: 10px;
}

ul {
  list-style: none;
}

.card {
  margin-bottom: 10px !important;
}
/* Dodatkowe style dla formularzy */
.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.vh-100 {
    min-height: 100vh;
}

/* Animacje dla przycisków */
.btn {
    transition: all 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .vh-100 {
        min-height: auto;
        padding: 2rem 0;
    }
}

.site-footer {
  background-color: #696868; /* opcjonalne tło */
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.site-footer a.footer-link {
  color: white;
  margin: 0 0.5rem;
}


.site-footer a.footer-link:hover {
  color: #f09e40;
  text-decoration: none;
}
/* Usuń tradycyjne list-style i dodaj gradient tła */
.sidebar {
    background: linear-gradient(135deg, #3156fc 0%, #3ae6d1 100%);
    border-radius: 0 15px 15px 0;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
}

/* Nagłówek menu */
.sidebar h3 {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Listy i linki w sidebar */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar ul li a {
    display: block;
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

/* Lekki efekt „wypełnienia” przy hover */
.sidebar ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(240, 173, 73, 0.1);
    transition: width 0.3s ease;
    z-index: 1;
}
.sidebar ul li a:hover::before {
    width: 100%;
}
.sidebar ul li a:hover {
    background: rgba(230, 183, 32, 0.15);
    border-left-color: #f5b80f;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* RESPONSYWNOŚĆ dla mobilnych */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        border-radius: 0;
    }
    .sidebar_container {
        flex-direction: column;
    }
    .sidebar ul {
        display: flex;
        overflow-x: auto;
        padding: 0 10px;
    }
    .sidebar ul li a {
        flex-shrink: 0;
        margin: 0;
    }
    
    .menu li {
    display: block;  
    margin: 0;
    padding: 0;
    gap: 0;

    }
    .menu li a {
      display: block; /* ważne - sprawia, że link zajmuje całą szerokość */
      text-decoration: none;
      
      transition: background-color 0.3s ease; /* płynne przejście */
    }

    nav a {
      
      padding: 0px 0px;
      text-decoration: none;
    }

    /* Efekt hover - podświetlenie całej szerokości */
    .menu li a:hover {
      background-color: #8f8383; /* kolor tła po najechaniu */
    }

    /* Efekt po kliknięciu (aktywna strona) */
    .menu li a.active {
      background-color: #007bff; /* kolor dla aktywnej pozycji */
      color: white; /* biały tekst */
    }


}

.text-alert {color: #eb7d00 !important;}

.card-body {
  text-align: left !important;
}
.card-body li::before { content: ""}


.social-icons {
  text-align: center;
  padding: 20px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 24px;
  color: #333;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #E4405F; /* kolor Instagrama */
  transform: translateY(-5px); /* lekkie uniesienie przy hoverze */
}

/* Header Container */
.header-container {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* Header Navigation */
.header {
    padding: 1rem;
    max-width: 100%;
    overflow: visible; /* WAŻNE: pozwala wysunąć dropdown */
}

/* Menu List */
.menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu > li {
    position: relative;
}

/* Dropdown items - pionowo */
.dropdown-menu li {
    display: block !important;
    width: 100% !important;
}

.dropdown-menu {
    background-color: #007fd4a1 !important;
}

.dropdown-item {
    display: block !important;
    padding: 0.75rem 1rem !important;
    color: #333;
    background-color: #13343b;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    width: 100% !important;
    margin: 0px !important;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #ffffff41 !important;
}

.dropdown-divider {
    margin: 0 !important;
}


/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Active Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    
    .menu.active {
        max-height: 600px; /* Zwiększ wartość jeśli potrzebujesz więcej miejsca */
    }
    
    .menu > li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding: 0;
    }
    
    .menu a {
        padding: 1rem;
        margin: 0;
    }
    
    /* Dropdown menu na mobile */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-menu.show {
        max-height: 500px;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link.dropdown-toggle::after {
        display: inline-block;
    }
}

/* Ukryj title na mobile */
@media (max-width: 768px) {
    .umow-zdalnie {
        font-size: 1.2rem;
    }
}