/* General Body and HTML Styles */
html {
    font-size: 14px;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Arial', sans-serif; /* Readable font */
    color: #333; /* Dark grey text for readability */
    background-color: #fff5f5; /* Light red background for warmth */
    
}

/* Navbar Styles */
.navbar {
    background-color: #c8102e; /* Dark red for navbar */
}

.navbar-brand {
    color: #fff !important; /* White text for brand */
}

.nav-item {
    background-color: #c8102e;
    margin-bottom: 0.5rem; /* Spacing between nav items */
    border-radius: 0.25rem; /* Slightly rounded corners */
}

.nav-link {
    color: #f8f9fa !important; /* Light text for nav links */
    transition: color 0.3s; /* Smooth color transition */
}

    .nav-link:hover {
        color: #ffd700; /* Gold color on hover */
        background-color: #a40c24; /* Darker red background on hover */
        border-radius: 4px; /* Slightly rounded corners on hover */
    }

    .nav-link.active {
        color: #fff; /* White text for active link */
        background-color: #a40c24; /* Darker red background for active link */
        border-radius: 5px;
    }

.navbar-toggler-icon {
    background-color: #fff; /* White toggle icon */
}

/* Buttons */
.btn {
    background-color: #c8102e; /* Red background for buttons */
    color: #fff; /* White text */
    border: none; /* Remove default border */
    margin: 5px;
}

    .btn:hover {
        background-color: #a40c24; /* Darker red on hover */
    }

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #ff6f61; /* Orange shadow for focus */
    }

/* Card Styles for Login/Logout */
.login-logout-card {
    border: 1px solid #c8102e; /* Red border for the card */
    border-radius: 8px; /* Slightly rounded corners */
}

    .login-logout-card .card-header {
        padding: 0px 0px 12px 0px;
        background-color: #c8102e; /* Red header background */
        color: #fff; /* White text for header */
        border-bottom: 1px solid #a40c24; /* Darker red border */
    }

    .login-logout-card ul.nav-tabs {
        margin: 0px 0px -12px 0px;
    }

    .login-logout-card li.nav-item {
        width: 50%;
    }

    .login-logout-card a.nav-link {
        font-size: 1rem;
        color: #fff; /* White text for nav links */
        text-align: center;
        padding: 1rem;
        background-color: #a40c24; /* Darker red for active tab */
        border: 1px solid #c8102e;
    }

        .login-logout-card a.nav-link.active {
            background-color: #c8102e; /* Red background for nav links */
            border: 1px solid #c8102e;
        }

        .login-logout-card a.nav-link:hover {
            border: 1px solid #c8102e;
        }

    .login-logout-card .card-body {
        padding: 10px 20px;
    }

/* Footer Styles */
.footer {
    background-color: #c8102e; /* Red background for footer */
    color: #fff; /* White text for footer */
    border-top: 1px solid #a40c24; /* Darker red border at the top */
    padding: 1rem 0;
}

    .footer a {
        color: #ffd700; /* Gold color for footer links */
    }

        .footer a:hover {
            color: #fff; /* White color on hover */
        }


/* General Table Styling */
.table {
    background-color: #fff; /* White background for table */
    color: #333; /* Dark text for readability */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa; /* Light grey for alternate rows */
}

.table-bordered {
    border: 1px solid #c8102e; /* Red border for the table */
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1; /* Light grey on hover for rows */
}

/* Header Styling */
.thead-dark th {
    background-color: #c8102e; /* Dark red background for header */
    color: #fff; /* White text */
}

/* Status Badges */
.badge.bg-danger {
    background-color: #dc3545; /* Bootstrap red for 'Disabled' */
}

.badge.bg-success {
    background-color: #28a745; /* Bootstrap green for 'Active' */
}

/* Action Buttons */
.btn-primary {
    background-color: #c8102e; /* Red background for 'Create New' */
    border-color: #c8102e; /* Match border color */
}

    .btn-primary:hover {
        background-color: #a40c24; /* Darker red on hover */
    }

.btn-warning {
    background-color: #ffc107; /* Bootstrap yellow for 'Edit' */
}

.btn-info {
    background-color: #17a2b8; /* Bootstrap cyan for 'Details' */
}

.btn-danger {
    background-color: #dc3545; /* Bootstrap red for 'Delete' */
}

.btn-secondary {
    background-color: #6c757d; /* Bootstrap grey for 'Enable/Disable' */
}

.btn-sm {
    font-size: 0.875rem; /* Slightly smaller buttons */
}
/* General Table Styling */
.table {
    background-color: #fff; /* White background for table */
    color: #333; /* Dark text for readability */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa; /* Light grey for alternate rows */
}

.table-bordered {
    border: 1px solid #c8102e; /* Red border for the table */
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1; /* Light grey on hover for rows */
}

/* Header Styling */
.thead-dark th {
    background-color: #c8102e; /* Dark red background for header */
    color: #fff; /* White text */
}

/* Status Badges */
.badge.bg-success {
    background-color: #28a745; /* Green for 'Paid' */
}

.badge.bg-danger {
    background-color: #dc3545; /* Red for 'Not paid' */
}

/* Pay Button */
.btn-danger {
    background-color: #c8102e; /* Red background for 'Pay' button */
    border-color: #c8102e; /* Match border color */
}

    .btn-danger:hover {
        background-color: #a40c24; /* Darker red on hover */
    }

.btn-sm {
    font-size: 0.875rem; /* Slightly smaller buttons */
}
/* General Table Styling */
.table {
    background-color: #fff; /* White background for table */
    color: #333; /* Dark text for readability */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa; /* Light grey for alternate rows */
}

.table-bordered {
    border: 1px solid #c8102e; /* Red border for the table */
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1; /* Light grey on hover for rows */
}

/* Header Styling */
.thead-dark th {
    background-color: #c8102e; /* Dark red background for header */
    color: #fff; /* White text */
}

/* Status Badges */
.badge.bg-success {
    background-color: #28a745; /* Green for 'Active' */
}

.badge.bg-danger {
    background-color: #dc3545; /* Red for 'Disabled' */
}

/* Order Button */
.btn-primary {
    background-color: #c8102e; /* Red background for 'Order' button */
    border-color: #c8102e; /* Match border color */
}

    .btn-primary:hover {
        background-color: #a40c24; /* Darker red on hover */
    }

.btn-sm {
    font-size: 0.875rem; /* Slightly smaller buttons */
}
/* Navbar Styles */
.navbar {
    background-color: #c8102e; /* Dark red for navbar */
}

.navbar-brand {
    color:  !important; /* White text for brand */
}
.nav-item {
    background-color: #c8102e;
    margin-bottom: 0.5rem; /* Spacing between nav items */
    border-radius: 0.25rem; /* Slightly rounded corners */
}


.nav-link {
    color: #f8f9fa !important; /* Light text for nav links */
    transition: color 0.3s; /* Smooth color transition */
}

    .nav-link:hover {
        color: #ffd700; /* Gold color on hover */
        background-color: #a40c24; /* Darker red background on hover */
        border-radius: 4px; /* Slightly rounded corners on hover */
    }

    .nav-link.active {
        color: #f8f9fa; /* White text for active link */
        background-color: #a40c24; /* Darker red background for active link */
    }

/* Navbar Toggler Icon */
.navbar-toggler-icon {
    background-color: #c8102e;
}

/* Footer Styles */
.footer {
    background-color: #c8102e; /* Red background for footer */
    color: #fff; /* White text for footer */
    border-top: 1px solid #a40c24; /* Darker red border at the top */
    padding: 1rem 0;
}

    .footer a {
        color: #ffd700; /* Gold color for footer links */
    }

        .footer a:hover {
            color: #fff; /* White color on hover */
        }

.table .Actions {
    width: 10%; /* Adjust this percentage to make it narrower */
    white-space: nowrap; /* Prevent text wrapping */
}

.bilans {
    background-color: #c8102e;
    margin-bottom: 1rem; /* Spacing between nav items */
    border-radius: 0.25rem; /* Slightly rounded corners */
    color: #fff !important;
    width: 29%;
}

.bilansBtn {
    background-color: #c8102e; /* Red background for buttons */
    color: #f8f9fa !important; /* White text */
    border: none; /* Remove default border */
}

    .bilansBtn:hover {
        background-color: #a40c24; /* Darker red on hover */
    }

    .bilansBtn:focus, .bilansBtn:active:focus, .bilansBtn.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #ff6f61; /* Orange shadow for focus */
    }

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

.menu {
    background-color: white;
    border-radius: 0.25rem;
    color: #333 !important;
    height: 800px;
    width: 750px;
    border: 1px solid #c8102e;
    margin-bottom: 20px; /* odstęp między polem a przyciskiem */
}

.menuBtn {
    background-color: #c8102e;
    color: #f8f9fa !important;
    border: none;
    width: 750px;
    height: 50px;
    border-radius: 0.25rem;
    border: 1px solid #c8102e;
    font-size: 20px;
    cursor: pointer;
}

    .menuBtn:hover {
        background-color: #a40c24;
    }

    .menuBtn:focus, .menuBtn:active:focus, .menuBtn.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #ff6f61;
    }

.logo {
    width: 126px;
    height: 59px;
}

.logoHome {
    width: 1012px;
    height: 471px;
}

@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar {
        display: block;
        padding: 10px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    /* Adjust button sizes */
    .btn-sm {
        font-size: 0.75rem;
    }

    /* Menu adjustments */
    .menu {
        width: 100%;
        height: auto;
    }

    .menuBtn {
        width: 100%;
        font-size: 16px;
    }

    /* Adjust Bilans width */
    .bilans {
        width: 100%;
    }

    /* Table responsive adjustments */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust logo size */
    .logo {
        width: 100px;
        height: auto;
    }

    .logoHome {
        width: 100%;
        height: auto;
    }

    /* Body padding for small screens */
    body {
        margin: 0;
        padding: 0 10px;
    }

    /* Font size adjustments for headings */
    h1, h2, h3 {
        font-size: 1.5rem;
    }

    /* Footer adjustments */
    .footer {
        padding: 1rem;
    }
    .navbar-collapse {
        display: block;
    }

    /* Poprawka na obraz logo */
    .navbar-brand img {
        max-width: 100px; /* Logo mniejsze na telefonach */
    }

    /* Dostosowanie paddingu w elementach */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.8rem; /* Mniejsze odstępy dla telefonów */
    }

    /* Container dla mobilnych ekranów */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Dostosowanie przycisków w footerze */
    footer {
        font-size: 14px;
        text-align: center;
    }
    .nav-item {
        margin-bottom: 0.5rem;
    }

    #logout {
        padding: 0; /* Zapobiega powiększaniu przycisku na mniejszych ekranach */
    }
    .login-logout-card {
        margin-top: 2rem;
    }

    .card-body {
        padding: 1rem; /* Zmniejszenie paddingu na małych ekranach */
    }
    .product-table th, .product-table td {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

        .product-table td.action-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
        }

    .product-table .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    .napis {
        font-size: 0.75rem;
    }
}
.table-responsive {
    overflow-x: auto;
}

.product-table th, .product-table td {
    text-align: center;
    vertical-align: middle;
}

.product-table td.action-buttons {
    white-space: nowrap;
}

/* Przyciski akcji w tabeli */
.product-table .btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.875rem;
}

.napis {
    font-size: 50px;
    font-weight: bold;
    color: white; /* kolor wnętrza litery */
    text-shadow: 5px 5px 0px black, -3px -3px 0px black, -3px 3px 0px black, 3px -3px 0px black; /* cienie symulujące obrys */
}