﻿        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;
        }

/* Podstawowe style dla menu - 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;
}

.navbar-brand:hover {
    background-color: #27AE60;
    color: white !important;
}

/* Style dla linków nawigacji */
.nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    line-height: 56px;
    padding: 0 1rem;
}

.nav-link:hover {
    color: #00c853 !important;
}

/* Style dla przycisku toggle */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
    margin-right: 0;
}

.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");
}

/* Responsywne 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;
    }
}

/* Header */
.page-header {
    margin-top: 100px;
    text-align: center;
    padding: 20px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.page-header h1:after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background-color: #2ECC71;
    margin: 10px auto 0;
}
		
/* 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;
    }
}

/* Sekcja z przeliczeniem kwot */
.calculator-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
    max-width: 800px;
}

.calculator-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.form-field {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.form-control:focus {
    border-color: #2ECC71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
    background-color: #ffffff;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: #2ECC71;
    font-weight: 600;
    font-size: 1.1rem;
}

.button-wrapper {
    flex: 0 0 auto;
    width: auto;
}

.btn-convert {
    background-color: #2ECC71;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-convert:hover {
    background-color: #27AE60;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
}

.btn-convert i {
    font-size: 0.9em;
}

/* Responsywność */
@media (max-width: 768px) {
    .calculator-section {
        padding-bottom: 1.5rem;
    }

    .calculator-form {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .form-field {
        width: 100%;
    }

    .form-label {
        text-align: center;
        display: block;
        margin-bottom: 0.5rem;
    }

    .input-wrapper {
        position: relative;
        width: 100%;
    }

    .form-control {
        width: 100%;
        text-align: center;
        padding-left: 2rem;
    }

    .currency-symbol {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #28a745;
    }

    .button-wrapper {
        width: 100%;
        margin: 1rem 0 1rem 0;
    }

    .btn-convert {
        width: 100%;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Popularne kwoty przeliczeń USD na PLN */
.popular-amounts {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
    max-width: 800px;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    line-height: 1.4;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #2ECC71;
}

.amounts-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.amounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: #e9ecef;
}

.amount-item {
    background-color: #f8f9fa;
}

.amount-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.amount-link:hover {
    background-color: #ffffff;
    color: #2ECC71;
    transform: translateX(5px);
}

.amount-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.amount-link i {
    color: #2ECC71;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.amount-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Responsywność */
@media (max-width: 768px) {
    .popular-amounts {
        padding: 1rem;
        margin: 0.5rem;
    }

    .amounts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        background-color: #fff;
    }

    .amount-link {
        display: block;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
    }

    .amount-value {
        font-size: 0.95rem;
        font-weight: 500;
    }
}

/* Sekcja z contentem: red more i grafiki */
.currency-image-container {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.currency-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.currency-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.exchange-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#currencyDescription {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#currencyDescription h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

#currencyDescription h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00c853;
    border-radius: 2px;
}

.description {
    position: relative;
    margin-bottom: 20px;
}

.description .content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.description .short-text {
    margin-bottom: 0;
    line-height: 1.6;
    color: #555;
}

.description .full-text {
    display: none;
    margin-top: 10px;
    line-height: 1.6;
    color: #555;
}

.description.expanded .full-text {
    display: block;
}

.description.expanded .short-text {
    display: none;
}

.description .read-more,
.description .read-less {
    color: #00c853;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.description .read-more:hover,
.description .read-less:hover {
    color: #009624;
}

.description .read-less {
    display: none;
}

.description.expanded .read-more {
    display: none;
}

.description.expanded .read-less {
    display: inline-block;
}

@media (max-width: 768px) {
    .currency-image-container {
        padding: 10px;
    }
    
    .currency-icon {
        width: 30px;
        height: 30px;
        right: 10px;
        top: 10px;
    }
    
    #currencyDescription {
        padding: 1rem;
    }
    
    #currencyDescription h2 {
        font-size: 1.5rem;
    }
}

/* Wyświetlanie kursów kupna i sprzedaży USD oraz informacji o tabeli i dacie */
.rates-container {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #fefefe;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rate-box {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.rate-box:hover {
    transform: translateY(-5px);
}

.rate-title {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.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) {
    .rates-container {
        flex-direction: column;
		padding: 1rem 0.5rem;
    }

    .rate-box {
        margin-bottom: 1rem;
    }
}
/* 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;
    }
}

/* Kursy USD z wybranych dni */
.rates-specific-days-container {
    margin: 32px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    padding: 24px;
}

.rates-specific-days-table th,
.rates-specific-days-table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
}

.rates-specific-days-table th {
    background: #f7f7f7;
    font-weight: 600;
}

.rates-specific-days-table tr td strong {
    color: #00c853;
    font-weight: 700;
}

@media (max-width: 600px) {
    .rates-specific-days-container {
        padding: 10px;
    }
    .rates-specific-days-table th, .rates-specific-days-table td {
        font-size: 14px;
        padding: 8px 4px;
    }
}

/* Style dla sekcji wykresu */
.chart-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    width: 100%;
    overflow: hidden; /* Dodane */
}

.chart-container {
    width: 100%;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    position: relative; /* Dodane */
}

.date-range {
    font-weight: 500;
    color: #2ECC71;
    font-size: 0.9em;
    display: block;
    margin-top: 0.5rem;
}

#chartContainer {
    width: 100%;
    height: 500px;
    position: relative; /* Dodane */	
}

#historicalChart {
    width: 100% !important; /* Dodane !important */
    height: 100% !important; /* Dodane !important */
}

/* Responsywność */
@media (max-width: 768px) {
    .chart-section {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0;
    }
    .chart-container {
        padding: 0.5rem;
    }
    .section-title {
        font-size: 1.25rem;
    }

    #chartContainer {
        height: 300px;
    }
}

/* 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;
    }
}

.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.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;
    }
}
