/* --- ZMIENNE GLOBALNE --- */
:root {
    --primary-blue: #0B2545;
    --sky-blue: #57A2CE;
    --stripe-color: #87CEEB;
}

html {
    scroll-behavior: smooth;
    height: 100%; /* Ważne dla stopki */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #fff;
    /* USTAWIENIA DLA STICKY FOOTER (STOPKA NA DOLE) */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --- NAWIGACJA --- */
.navbar {
    background-color: var(--primary-blue) !important;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    margin-right: 10px;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    color: white;
    letter-spacing: 1px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 10px 15px !important;
}

.nav-link:hover {
    color: var(--sky-blue) !important;
}

.btn-custom-primary {
    background-color: var(--sky-blue);
    color: white;
    border: none;
    padding: 10px 30px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-custom-primary:hover {
    background-color: #468bb3;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(87, 162, 206, 0.3);
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(11, 37, 69, 0.7), rgba(11, 37, 69, 0.7)), url('tlo3.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
}

/* --- SEKCJE OGÓLNE --- */
/* Dodajemy flex-grow, aby treść wypychała stopkę */
.content-wrapper, .container, section {
    flex: 1 0 auto; 
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* --- CECHY --- */
.feature-box {
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--sky-blue);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* --- FLOTA --- */
.fleet-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    background: white;
}

.fleet-card:hover {
    transform: translateY(-5px);
}

.fleet-img-wrapper {
    height: 200px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fleet-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.fleet-card:hover .fleet-img-wrapper img {
    transform: scale(1.1);
}

.fleet-specs {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.spec-item i {
    color: var(--sky-blue);
    margin-right: 5px;
}

/* --- KARIERA / PAGONY --- */
.rank-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px 10px;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
    height: 100%;
}

.rank-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.epaulet-sprite {
    width: 80px;
    height: 120px;
    margin: 0 auto 15px auto;
    background-image: url('rangi2.png');
    background-repeat: no-repeat;
    background-size: 400% 200%;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
}

.rank-1 { background-position: 0% 0%; }
.rank-2 { background-position: 33.33% 0%; }
.rank-3 { background-position: 66.66% 0%; }
.rank-4 { background-position: 100% 0%; }
.rank-5 { background-position: 0% 100%; }
.rank-6 { background-position: 33.33% 100%; }
.rank-7 { background-position: 66.66% 100%; }
.rank-8 { background-position: 100% 100%; }

/* --- ZASADY --- */
.rule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.rule-icon {
    background-color: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

/* --- FOOTER (ZMODYFIKOWANY) --- */
footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 0; /* Zmniejszono z 50px */
    margin-top: auto; /* Wypycha stopkę na dół w układzie flex */
    font-size: 0.9rem;
    flex-shrink: 0;
}

footer a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

/* --- PRACA I EKONOMIA --- */
.economy-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.economy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--sky-blue);
    transition: height 0.3s;
    z-index: -1;
}

.economy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.economy-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.economy-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f0f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-blue);
    transition: all 0.3s;
}

.economy-card:hover .economy-icon-wrapper {
    background-color: var(--primary-blue);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.ec-earning .economy-icon-wrapper { color: #28a745; background-color: #e8f5e9; }
.ec-earning:hover .economy-icon-wrapper { background-color: #28a745; color: white; }
.ec-plane .economy-icon-wrapper { color: var(--sky-blue); background-color: #eaf6fc; }
.ec-plane:hover .economy-icon-wrapper { background-color: var(--sky-blue); color: white; }
.ec-bank .economy-icon-wrapper { color: #ffc107; background-color: #fff8e1; }
.ec-bank:hover .economy-icon-wrapper { background-color: #ffc107; color: white; }

/* --- ADMIN PANEL STYLES --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
}

/* Sidebar - wymuszenie koloru ze strony głównej */
.admin-sidebar {
    width: 260px;
    background-color: var(--primary-blue) !important; /* Twój granat #0B2545 */
    color: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.admin-sidebar .sidebar-brand {
    padding: 25px 20px;
    font-weight: 700;
    font-size: 1.4rem; /* Większe logo */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 15px 25px !important; /* Większe odstępy (padding) */
    border-left: 4px solid transparent;
    text-transform: none;
    font-family: 'Montserrat', sans-serif; /* Bardziej czytelny font nagłówkowy */
    
    /* KLUCZOWA ZMIANA: WIĘKSZA CZCIONKA */
    font-size: 1.1rem !important;  /* Zwiększone z domyślnego rozmiaru */
    font-weight: 500 !important;    /* Wyraźniejsza waga czcionki */
    letter-spacing: 0.5px;          /* Lekki odstęp między literami */
    
    margin-bottom: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

/* Hover i Aktywny link z Twoim błękitem */
/* Stan aktywny */
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--sky-blue) !important;
    border-left: 4px solid var(--sky-blue) !important;
    font-weight: 700 !important; /* Pogrubienie aktywnej pozycji */
}

.admin-sidebar .nav-link i {
    width: 30px;
    margin-right: 12px;
    font-size: 1.3rem; /* Ikona dopasowana do większego tekstu */
    color: var(--sky-blue);
    text-align: center;
}

.admin-sidebar .nav-link.active i {
    color: white;
}

/* Karty Statystyk */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f0f7fb;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}