/* Base styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #8BC34A;
    --secondary-color: #2196F3;
    --dark-color: #1a1a1a;
    --light-dark: #2d2d2d;
    --lighter-dark: #3d3d3d;
    --light-color: #ffffff;
    --gray-color: #f7f7f7;
    --text-color: #8a8080;
    --border-color: #444;
    --border-radius: 10px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Navbar Styling */
.site-header {
    background-color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--dark-color), var(--light-dark));
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--light-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-info-item {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-info-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.hero-image {
    position: relative;
    padding: 20px;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 100%;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--light-dark);
}

.feature-card {
    background-color: var(--lighter-dark);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.feature-icon {
    background-color: rgba(76, 175, 80, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Pricing Preview Section */
.pricing-preview-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

/* Bardziej ogólne podejście - ustawienie białego koloru dla wszystkich tekstów w kartach/sekcjach */
.license-card,
.license-card * {
    color: var(--light-color);
}

/* Lub jeszcze bardziej ogólnie */
.account-content .card,
.account-content .card * {
    color: var(--light-color);
}

/* Ustawienie białego koloru dla nagłówków tabeli płatności */
.payment-table th,
.account_payments_title th,
table th {
    color: var(--light-color) !important; /* Biały kolor */
    font-weight: bold; /* Pogrubienie dla lepszej widoczności */
}

/* Ogólne poprawki dla tekstów w ciemnych kontenerach */
.account-content table th,
.account-content .card th,
.account-section-content th {
    color: var(--light-color) !important;
}

/* Styl dla linku "View Invoice" - zielona czcionka */
.payment-table td:last-child a,
table td:last-child a,
a.account_view_invoice,
#payments-section a[href*="invoice"] {
    color: var(--primary-color) !important; /* Zielony kolor tekstu */
    text-decoration: none; /* Bez podkreślenia */
    font-weight: 500; /* Lekko pogrubiony */
    transition: var(--transition);
}

/* Efekt przy najechaniu myszką - ciemniejszy zielony */
.payment-table td:last-child a:hover,
table td:last-child a:hover,
a.account_view_invoice:hover,
#payments-section a[href*="invoice"]:hover {
    color: var(--primary-dark) !important; /* Ciemniejszy zielony przy najechaniu */
    text-decoration: underline; /* Dodaje podkreślenie przy najechaniu */
}

.pricing-card {
    background-color: var(--light-dark);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.pricing-card-pro {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--light-dark), var(--lighter-dark));
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--primary-color);
    color: white;
    transform: rotate(45deg);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pricing-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.pricing-price {
    text-align: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: 8px;
    margin-right: 5px;
}

.amount {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-annual-info {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

.pricing-action {
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Testimonial Section */
.testimonial-section {
    padding: 100px 0;
    background-color: var(--light-dark);
}

.testimonial-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.testimonial-content {
    padding: 20px;
}

.testimonial-quote {
    position: relative;
    padding: 30px;
    background-color: var(--lighter-dark);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.testimonial-quote i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author .name {
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-author .title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.cta-box {
    background: linear-gradient(135deg, var(--lighter-dark), var(--light-dark));
    border-radius: var(--border-radius);
    padding: 60px;
    border: 1px solid var(--border-color);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.cta-box p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand span {
    margin-left: 10px;
}

.footer-about {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--lighter-dark);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.site-footer h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--lighter-dark);
    color: var(--light-color);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 15px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    margin-bottom: 0;
}

.language-selector {
    display: flex;
    gap: 15px;
}

.language-selector a {
    opacity: 0.7;
    transition: var(--transition);
}

.language-selector a:hover,
.language-selector a.active {
    opacity: 1;
    color: var(--primary-color);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cta-box {
        padding: 40px;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .testimonial-content {
        margin-top: 30px;
    }
    
    .cta-box {
        padding: 30px;
        text-align: center;
    }
    
    .cta-box .text-lg-end {
        text-align: center !important;
        margin-top: 20px;
    }
    
    .footer-brand,
    .social-links {
        justify-content: center;
    }
    
    .site-footer h5,
    .footer-links {
        text-align: center;
    }
    
    .language-selector {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-info {
        justify-content: center;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .amount {
        font-size: 3rem;
    }
}

/* Account Tables Styles - Start */
/* Te style są bardziej specyficzne i agresywne, aby nadpisać domyślne style Bootstrap */

/* Globalne style dla tabel w strefie konta */
table, .table {
    background-color: var(--light-dark) !important;
    color: white !important;
    border-collapse: collapse !important;
    margin-bottom: 1rem !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
}

tr, .table tr {
    background-color: var(--light-dark) !important;
    color: white !important;
}

th, .table th, td, .table td {
    padding: 0.75rem !important;
    color: white !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

th, .table th {
    background-color: var(--dark-color) !important;
    font-weight: bold !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

/* Style dla parzystych/nieparzystych wierszy */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--lighter-dark) !important;
}

/* Specyficzne style dla sekcji licencji */
#licenses-section table, 
#licenses-section table tbody,
#licenses-section table tr,
#licenses-section table th,
#licenses-section table td {
    background-color: var(--light-dark) !important;
    color: white !important;
}

#licenses-section .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--lighter-dark) !important;
}

/* Specyficzne style dla statusów licencji */
#licenses-section .text-success {
    color: var(--primary-color) !important;
    font-weight: bold !important;
}

#licenses-section .text-danger {
    color: #ff5252 !important;
    font-weight: bold !important;
}

#licenses-section .text-warning {
    color: #ffc107 !important;
    font-weight: bold !important;
}

/* Style dla przycisku anulowania subskrypcji */
.btn-warning, 
a.btn-warning,
button.btn-warning {
    background-color: #f0ad4e !important;
    border-color: #f0ad4e !important;
    color: #fff !important;
}

.btn-warning:hover, 
a.btn-warning:hover,
button.btn-warning:hover {
    background-color: #ec971f !important;
    border-color: #ec971f !important;
}

/* Dodatkowe style dla kontrastu w tabelach */
.account-section-content .table {
    color: white !important;
    background-color: var(--light-dark) !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
}

.account-section-content .table th,
.account-section-content .table td {
    color: white !important;
    border-color: var(--border-color) !important;
}

/* Wymuszone style dla konkretnych elementów tabeli */
[data-section="licenses"] table,
[data-section="licenses"] tr,
[data-section="licenses"] th,
[data-section="licenses"] td {
    color: white !important;
    background-color: var(--light-dark) !important;
}

/* Dodatkowe style dla konkretnych kolumn w tabeli licencji */
#licenses-section table td:nth-child(1), /* Kolumna klucza licencji */
#licenses-section table td:nth-child(2), /* Kolumna typu planu */
#licenses-section table td:nth-child(4) /* Kolumna daty wygaśnięcia */ {
    color: white !important;
    font-weight: normal !important;
}

/* Style pomocnicze dla przycisków */
.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    border-radius: 0.2rem !important;
}
/* Dodatkowe style dla lepszej widoczności tekstu w tabelach */
#licenses-section table,
#licenses-section table tbody tr,
#licenses-section table th,
#licenses-section table td,
#payments-section table,
#payments-section table tbody tr,
#payments-section table th,
#payments-section table td {
    color: var(--light-color) !important;
}

/* Style dla linków w tabelach */
.account_view_invoice,
table td a,
.license-card a,
.dashboard-card a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.account_view_invoice:hover,
table td a:hover,
.license-card a:hover,
.dashboard-card a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* Poprawka dla przycisków, aby nie przejmowały powyższych stylów */
.btn-primary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-info,
.btn-secondary {
    text-decoration: none !important;
}

/* Style dla statusów licencji */
#licenses-section .text-success {
    color: #28a745 !important;
    font-weight: bold;
}

#licenses-section .text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

#licenses-section .text-warning {
    color: #ffc107 !important;
    font-weight: bold;
}

/* Dodatkowe naprawione style dla tabel */
table tbody tr td,
.table tbody tr td,
#licenses-section table tbody tr td,
#payments-section table tbody tr td {
    color: white !important;
    background-color: var(--light-dark) !important;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: var(--lighter-dark) !important;
}

/* Poniższe style mają najwyższy priorytet */
td, th, tr {
    color: white !important;
}

/* Account Tables Styles - End */