/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f5f5f5;
    color: #1a1a1a;
}

header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-bar {
    background: #1fbd36;
    color: white;
    text-align: center;
    padding: 5px;
    font-weight: bold;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
}
.logo img {
    height: 50px;
    object-fit: contain;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
}
.logo span {
    color: red;
}

.actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .actions-links {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
  }

  .actions-links a,
  .link-login {
    color: #444;
    text-decoration: none;
    font-weight: 500;
  }

.link-login:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: #3f47ea;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.btn-yellow {
    background-color: #1fbd36;
    color: rgb(255, 255, 255);
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}


.btn-login {
    background: none;
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
}

.btn-login .icon {
    width: 18px;
    height: 18px;
}
.btn-login:hover {
    color: #1fbd36;
}

/* NAV buttons */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    padding: 10px;
}

.btn-orange {
    background: orange;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-orange:hover {
    background: #e69500;
}

.btn-red {
    background: #e53935;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-red:hover {
    background: #c62828;
}

nav ul {
    display: flex;
    list-style: none;
    background: #f7f7f7;
    justify-content: center;
    padding: 10px;
    gap: 1.5em;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #1fbd36;
}

/* Zlecenia */
main {
    padding: 2em;
}
.zlecenia-title {
    text-align: center;
    margin-bottom: 1em;
}
.zlecenia-title h2 {
    font-size: 24px;
    display: inline-block;
}
.zlecenia-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1em;
    animation: fadeIn 0.5s ease-out;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease-out;
}
thead {
    background: #1fbd36;
    color: white;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.btn-load {
    margin-top: 1.5em;
    padding: 10px 20px;
    background: #1fbd36;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-load:hover {
    background: #179f2c;
}

/* MODAL */
.modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.modal-login {
    background: #fff;
    border-radius: 12px;
    padding: 2em;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease;
}
.modal-login h2 {
    margin-bottom: 1em;
    text-align: center;
}
.modal-login label {
    font-size: 0.9em;
    margin-top: 1em;
    display: block;
    color: #555;
}
.modal-login input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.btn-modal-login {
    margin-top: 1.5em;
    background: #1fbd36;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.btn-modal-login:hover {
    background: #179f2c;
}
.modal-login a {
    color: #1fbd36;
    text-decoration: none;
    font-size: 0.9em;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}
.close-modal:hover {
    color: #555;
}
.modal-divider {
    display: flex;
    align-items: center;
    margin: 1.5em 0 1em;
}
.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ccc;
}
.modal-divider span {
    margin: 0 12px;
    color: #999;
    font-size: 0.9em;
    text-transform: uppercase;
}

.btn-register {
    width: 100%;
    background: #e0e0e0;
    border: none;
    padding: 10px;
    border-radius: 6px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-register:hover {
    background: #d5d5d5;
}
.kategorie-ogloszen {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2em 1em;
}

.kategoria {
    background: white;
    border-radius: 10px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    animation: fadeIn 0.4s ease-out;
}

.kategoria h2 {
    font-size: 22px;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.kategoria p {
    color: #777;
    font-size: 0.95em;
    margin-bottom: 1em;
}

.kategoria .btn-load {
    width: 100%;
}
.site-footer {
    background: #f9f9f9;
    padding: 30px 20px;
    font-size: 0.95em;
    color: #666;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.logo-footer {
    font-family: 'Russo One', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    color: #222;
}

.logo-main {
    font-family: 'Russo One', sans-serif;
    color: #222;
}

.logo-dotpl {
    font-family: 'Russo One', sans-serif;
    color: red;
}

.footer-slogan {
    font-family: 'Russo One', sans-serif;
    font-size: 1.1rem;
    margin-top: 5px;
    color: #222;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-family: system-ui, sans-serif; /* <-- NORMALNA CZCIONKA */
}

.footer-links a {
    color: #777;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}
.polityka {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}
  
.polityka h1 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 40px;
}
  
.polityka-tresc {
    font-size: 1rem;
    line-height: 1.8;
}
  
.polityka-tresc ol,
.polityka-tresc ul {
    margin-left: 20px;
}
  
.polityka-tresc li {
    margin-bottom: 8px;
}
.polityka-tresc p > strong {
    font-size: 1.5rem;
    display: block;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Dzwoneczek */
.notification-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}
.bell-icon {
    font-size: 24px;
    color: #333;
}
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    display: none; /* Ukryty gdy 0 */
}
/* Lista rozwijana */
.notif-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    width: 300px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
}
.notif-dropdown.show { display: block; }
.notif-header {
    background: #f8f9fa;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.notif-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.notif-item {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
}
.notif-item:hover { background: #f9f9f9; }
.notif-item.unread { background: #e6f7ff; border-left: 3px solid #007bff; }
.notif-date { display: block; font-size: 10px; color: #999; margin-top: 3px; }
.no-notifs { padding: 15px; text-align: center; color: #999; font-size: 13px; }
