body {
    background: linear-gradient(135deg, #e6f0fa 0%, #ffffff 100%);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow: auto;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #e6f0fa 0%, #ffffff 100%);
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    text-align: center;
}

.login-card .logo {
    margin-bottom: 20px;
}

.login-card .logo img {
    max-width: 120px;
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.login-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: #555;
    text-align: left;
    display: block;
}

.form-control {
    border-radius: 8px;
    padding: 12px 40px 12px 12px; /* Adjusted for eye button */
    border: 1px solid #ddd;
    background: #f8f9fa;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    position: relative;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    background: #fff;
}

/* .btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-register {
    background-color: #28a745;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 20px;
    color: #fff;
}

.btn-register:hover {
    background-color: #218838;
    color: #fff; 
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: #5a6268;
} */


.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}   
  
.position-relative {
    position: relative;
}

.eye-btn {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
    z-index: 10; /* Ensure above input */
}

.footer-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
}

.footer-text a {
    color: #007bff;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
}

.container {
    margin-top: 20px;
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #007bff;
    color: #fff;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    padding: 15px;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: #007bff;
    color: #242222;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    overflow-y: auto;
    background: #007bff; /* Original color, you can change this */
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    /* Add the following to hide the scrollbar while allowing scrolling */
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

/* Hide scrollbar in WebKit browsers (Chrome, Safari) */
.sidebar::-webkit-scrollbar {
    display: none; /* Completely hide the scrollbar */
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    max-width: 150px;
}

.sidebar .nav-link {
    color: #fff !important;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.sidebar .nav-link:hover {
    background: #0056b3;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Navbar adjustments */
.navbar {
    z-index: 1100; /* Ensure navbar is above sidebar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default (will show on mobile) */
}

.navbar-brand img {
    max-height: 40px; /* Adjust logo size in navbar */
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23027BFF' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Table button styling */
/* .table-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

.table-btn.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.table-btn.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.table-btn.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.table-btn.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
} */

/* Enhanced styling for the report page */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #007bff;
    color: white;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-card p {
    margin: 0;
    font-size: 1.1rem;
}

.summary-card i {
    margin-right: 10px;
    color: #007bff;
}

.table thead th {
    background-color: #007bff;
    color: white;
}

.table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table tfoot th {
    background-color: #FFEDAB;
    font-weight: bold;
}

.table-income {
    font-size: 0.9rem; /* Smaller font size for compactness */
    border-collapse: collapse; /* Remove extra spacing */
    width: 100%;
}

.table-income th, .table-income td {
    padding: 8px 12px; /* Reduced padding for a compact look */
    vertical-align: middle; /* Center-align content vertically */
    border: 1px solid #dee2e6; /* Light border for clarity */
}

.table-income th {
    background-color: #007bff; /* Blue header background */
    color: white; /* White text for contrast */
    font-weight: 600; /* Slightly bold headers */
    text-transform: uppercase; /* Uppercase headers for professionalism */
    letter-spacing: 0.5px; /* Slight letter spacing for readability */
}

.table-income tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Light gray for alternate rows */
}

.table-income tbody tr:hover {
    background-color: #e9ecef; /* Hover effect for interactivity */
}

.bank-details {
    display: block; /* Display on a new line */
    color: #6c757d; /* Gray color for secondary info */
    font-size: 0.85em; /* Smaller font for details */
    font-style: italic; /* Italicize for distinction */
}

/* Desktop: Sidebar is static, navbar is hidden */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0); /* Always visible on desktop */
        display: block !important; /* Ensure sidebar is visible */
    }
    .content {
        margin-left: 250px; /* Adjust for sidebar width */
        width: calc(100% - 250px);
        padding-top: 20px; /* No navbar, so less padding */
    }
    .navbar {
        display: none !important; /* Hide navbar on desktop */
    }
}

/* Mobile: Sidebar is hidden, navbar is visible */
@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%) !important; /* Hidden by default on mobile */
        display: block; /* Ensure sidebar is available for toggling */
    }
    .sidebar.show {
        transform: translateX(0) !important; /* Show when toggled */
    }
    .content {
        margin-left: 0;
        width: 100%;
        padding-top: 60px; /* Adjusted for navbar height on mobile */
    }
    .navbar {
        display: block !important; /* Show navbar on mobile */
        padding: 10px 15px;
    }
    .container {
        padding: 15px;
    }
    .card {
        margin-bottom: 15px;
    }
    .table {
        font-size: 0.9rem;
    }
    .table th, .table td {
        padding: 8px;
    }
    .btn-sm {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    canvas {
        max-height: 300px !important;
        width: 100% !important;
    }
    /* Responsive table adjustments */
    .table-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin-right: 3px;
    }
    .table th, .table td {
        padding: 6px;
        font-size: 0.9rem;
    }
    .table {
        font-size: 0.9rem;
    }
    .table-income {
        font-size: 0.8rem; /* Even smaller font on mobile */
    }
    .table-income th, .table-income td {
        padding: 6px 8px; /* Further reduced padding on mobile */
    }
    /* Stack table headers and data on small screens */
    .table-income thead {
        display: none; /* Hide headers on mobile */
    }
    .table-income tbody tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid #dee2e6;
    }
    .table-income tbody td {
        display: block;
        text-align: left;
        border: none;
        border-bottom: 1px solid #e9ecef;
        position: relative;
        padding-left: 50%;
    }
    .table-income tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: 45%;
        font-weight: bold;
        text-transform: uppercase;
    }
    .table-income tbody td:last-child {
        border-bottom: none;
    }
    /* Overlay for sidebar on mobile */
    .sidebar.show::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
}

/* Button styling */
.btn-sm {
    padding: 4px 8px; /* Smaller buttons */
    font-size: 0.85rem; /* Smaller font for buttons */
}

/* Responsive adjustments for login card */
@media (max-width: 768px) {
    .login-card {
        max-width: 90%;
        padding: 20px;
    }
}

/* Sidebar Header Logo */
.sidebar-header {
    text-align: center;
    padding-bottom: 25px;
    margin-right: 50px;
}

.sidebar-header img {
    width: 150px; /* Adjust this value to make the logo smaller */
    height: auto;
}

/* Ensure the sidebar logo looks good on desktop */
@media (min-width: 768px) {
    .sidebar-header img {
        width: 150px; /* Consistent size on desktop */
    }
}

/* Ensure the sidebar logo looks good on desktop */
@media (max-width: 768px) {
    .sidebar-header img {
        display: none;
    }

    /* For sidebar menu padding */
    .mobile-padding {
        padding-top: 35px;
    }
}

/* FIXED FOOTER */

/* Ensure the body and html take up the full height for sticky footer */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Ensure the main content takes up available space */
body > .content {
    flex: 1 0 auto; /* Grow to fill available space, but don't shrink */
    padding-bottom: 60px; /* Add padding to prevent content from overlapping with footer */
}

/* Footer Styling */
.app-footer {
    flex-shrink: 0; /* Prevent footer from shrinking */
    background-color: #007BFF; /* Your brand color */
    padding: 15px 50px;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    position: fixed; /* Fix footer to bottom */
    bottom: 0; /* Align to bottom of viewport */
    left: 0; /* Ensure it spans full width */
    z-index: 1000; /* Ensure footer stays above other content */
}

/* Footer Content (Flexbox Layout) */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; /* Space between sections */
}

/* Left Section: Developed By and Version */
.footer-left {
    flex: 1;
    text-align: left;
}

.developed-by {
    font-size: 14px;
    color: #ffffff; /* White text for contrast */
    margin: 0;
    line-height: 1.5;
    font-family: 'Arial', sans-serif; /* Professional font */
}

.developed-by strong {
    font-weight: 700; /* Bold for "Shaheer Zaffar LLC" */
}

.developed-by .version-text {
    font-size: 12px;
    color: #e0e0e0; /* Slightly lighter white for version */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background for version */
    padding: 2px 8px;
    border-radius: 12px; /* Rounded corners for a modern look */
    margin-left: 8px;
    display: inline-block;
}

/* Right Section: Social Media Icons */
.footer-right {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icons */
    justify-content: flex-end;
}

.footer-social {
    font-size: 16px;
    color: #ffffff; /* White icons */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social:hover {
    color: #e0e0e0; /* Slightly lighter white on hover */
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .app-footer {
        padding: 10px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-left,
    .footer-right {
        text-align: center;
        flex: none;
    }

    .footer-right {
        justify-content: center;
        gap: 12px;
    }

    .developed-by {
        font-size: 12px;
    }

    .developed-by .version-text {
        font-size: 10px;
        padding: 2px 6px;
    }

    .footer-social {
        font-size: 14px;
    }

    body > .content {
        padding-bottom: 80px; /* Increased padding for mobile due to stacked footer content */
    }
}

/* Invoice Print Styling */
.invoice-box {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
}

.text-right {
    text-align: right;
}

/* Ensure table styling matches the design pattern */
.invoice-box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.invoice-box th, .invoice-box td {
    padding: 10px;
    border: 1px solid #ddd;
}

.invoice-box th {
    background-color: #f8f9fa;
}

/* Hide elements during printing */
@media print {
    .no-print {
        display: none;
    }
}

/* Adjust logo input field */
.header-section img {
    max-width: 100px;
    margin-bottom: 15px;
}

.header-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Invoice Items Table */
#itemsTable .form-control {
    height: 40px;
    padding: 8px;
}

/* Invoice Totals Section */
.totals-section {
    margin-bottom: 30px;
}

.totals-section p {
    font-size: 1.1rem;
    color: #555;
    margin: 5px 0;
}

/* Invoice Footer Section */
.footer-section {
    margin-bottom: 30px;
}

.footer-section p {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
}

.footer-section strong {
    color: #333;
}

/* Responsive Adjustments for Invoice Page */
@media (max-width: 767px) {
    .header-section img {
        max-width: 80px;
    }

    .header-section h3 {
        font-size: 1.2rem;
    }

    #itemsTable .form-control {
        height: 35px;
        font-size: 0.9rem;
    }

    .totals-section p {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }
}

/* Dropdown Toggle */
.sidebar .nav-link.dropdown-toggle {
    position: relative;
}

/* Hide Bootstrap's default dropdown arrow */
.sidebar .nav-link.dropdown-toggle::after {
    display: none;
}

/* Custom Plus/Minus Icon */
.sidebar .toggle-icon {
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sidebar .nav-link[aria-expanded="true"] .toggle-icon {
    transform: rotate(0deg);
}

.sidebar .nav-link[aria-expanded="false"] .toggle-icon {
    transform: rotate(0deg);
}

/* Smooth Collapse Animation */
.sidebar .collapse {
    transition: height 0.3s ease;
}

.sidebar .collapse.show {
    display: block;
}

/* Mobile Padding */
@media (max-width: 767px) {
    .mobile-padding {
        padding: 10px 0;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        z-index: 1050;
        padding-top: 60px !important;

    }
}

