﻿body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    margin-top: 20px;
    flex: 1 0 auto;
}

/* Header z H1 */
header {
	text-align: center;
    padding: 2rem 1rem;
    background-color: #ffffff;
    margin-top: 56px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

header h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 1rem;
        margin-top: 56px;
    }

    header h1 {
        font-size: 2rem;
        padding-bottom: 12px;
    }

    header h1:after {
        width: 60px;
    }
}

/* Wykres kursu historyczny */
.chart-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

#chartContainer {
    margin-top: 30px;
    width: 100%;
    height: 600px; /* Zwiększona wysokość na desktop */
}

#historicalChart {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .chart-container {
        padding: 1rem;
    }
}    
@media (max-width: 768px) {
    #chartContainer {
        height: 300px; /* Zachowana wysokość na mobile */
    }
}

/* Style podstawowe dla menu - nieco inny kod niż na index */
/* Podstawowe style dla navbar */
.navbar {
    background-color: #1a1a1a !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 56px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

/* Style dla przycisku Home */
.navbar-brand {
    text-decoration: none;
    position: relative;
    padding: 6px 12px;
    background-color: #2ECC71;
    color: white !important;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    height: auto;
    margin: 0;
}

/* Efekt hover dla przycisku */
.navbar-brand:hover {
    background-color: #27AE60;
    color: white !important;
}

/* Responsywne style dla mobile */
@media (max-width: 991px) {
    .navbar-brand {
        padding: 4px 12px;
        margin: 8px 0;
        font-size: 1.1rem;
    }
    
    .navbar {
        padding-top: 0;
        padding-bottom: 0;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
}

.nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    line-height: 56px; /* Zmienione: pełna wysokość navbar */
    padding: 0 1rem; /* Zmienione: uproszczenie paddingu */
}

.nav-link:hover {
    color: #00c853 !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
    margin-right: 0; /* Dodane: usunięcie marginesu */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.fixed-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Style dla mobile */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
        padding: 4px 10px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        padding: 0.5rem 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        padding: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        color: #ffffff !important;
        line-height: 1.2;
    }
}

/* Sekcja z przeliczeniem waluty */
.currency-converter-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-title {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

.conversion-result {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.currency-icon {
    color: #00c853;
    font-size: 2rem;
}

.exchange-icon {
    color: #666;
    margin: 0 1rem;
}

.amount-in-words {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

.exchange-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.update-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.update-info i {
    color: #00c853;
    margin-right: 0.5rem;
}

.nbp-table {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.rate-box:hover {
    transform: translateY(-5px);
}

.rate-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00c853;
}

.additional-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.info-item i {
    color: #00c853;
    width: 20px;
}

@media (max-width: 768px) {
    .currency-converter-section {
        padding: 1rem;
    }

    .amount-display {
        flex-direction: column;
        gap: 0.5rem;
    }

}
/* Aktualny kurs średni 1 USD */

.average-rate-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.average-rate-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    max-width: 600px;
    width: 100%;
}

.average-rate-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rate-icon {
    font-size: 1.8rem;
    color: #00c853;
    background: rgba(0, 200, 83, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.rate-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.rate-label {
    color: #666;
    font-size: 0.95rem;
}

.rate-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00c853;
}

@media (max-width: 768px) {
    .average-rate-box {
        padding: 1rem;
        margin: 1rem;
    }
    
    .rate-icon {
        font-size: 1.5rem;
        padding: 10px;
    }
    
    .rate-value {
        font-size: 1.2rem;
    }
}
/* Ostylowanie nagłówka przed wykresem */
.chart-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.chart-title {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

.chart-icon {
    color: #00c853;
    font-size: 1.8rem;
}

.chart-title-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-range {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

@media (max-width: 768px) {
    .chart-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .chart-title {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .date-range {
        font-size: 0.9rem;
    }
}

/* Ostatnie 5 kursów USD */
.rates-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.rates-title {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rates-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

.rates-title i {
    color: #00c853;
    font-size: 1.6rem;
}

.rates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rate-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.rate-item:last-child {
    border-bottom: none;
}

.rate-item:hover {
    background-color: rgba(0, 200, 83, 0.05);
}

.rate-date {
    color: #666;
    flex: 1;
}

.rate-value {
    color: #00c853;
    font-weight: 600;
    padding-left: 1rem;
}

.no-data {
    color: #666;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .rates-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .rates-title {
        font-size: 1.4rem;
    }

    .rate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .rate-value {
        padding-left: 0;
    }
}
/* Style dla sekcji z 10 losowymi kwotami */
.random-amounts-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.amounts-title {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.amounts-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

.amounts-title i {
    color: #00c853;
    font-size: 1.6rem;
}

.amounts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.amount-item {
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amount-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.amount-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    gap: 0.5rem;
}

.amount-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00c853;
}

.currency-label {
    color: #666;
    font-weight: 500;
}

.amount-link i {
    margin-left: auto;
    color: #00c853;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.amount-item:hover .amount-link i {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .random-amounts-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .amounts-title {
        font-size: 1.4rem;
    }

    .amounts-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .amount-link {
        padding: 0.8rem;
    }

    .amount-value {
        font-size: 1.1rem;
    }
}

/* Nagłówek zmian kursu */
.currency-dynamics-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.dynamics-title {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dynamics-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

.dynamics-title i {
    color: #00c853;
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .currency-dynamics-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .dynamics-title {
        font-size: 1.4rem;
    }
}

/* Prezentacja obliczeń wzrostu i spadku waluty */
.currency-changes {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.changes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.changes-table th,
.changes-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.changes-table th:first-child,
.changes-table td:first-child {
    text-align: left;
}

.change-positive {
    color: #2ECC71;
	font-weight: 600;
}

.change-negative {
    color: #E74C3C;
	font-weight: 600;
}

@media (max-width: 768px) {
    .currency-changes {
        padding: 1rem;
    }
    
    .changes-table th,
    .changes-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Style dla footera */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 50px;
    width: 100%;
}

.site-footer h5 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #00c853;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer ul li i {
    margin-right: 10px;
    color: #00c853;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #00c853;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 10px;
    }
    
    .site-footer .col-md-4 {
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        margin-top: 20px;
    }
}