 /* SCSS Variables */
        :root {
            --font: 'Roboto', sans-serif;
            --bg: #37404a;
            --white: #FFF;
            --grey: #333;
            --green: #85FFC7;
            --blue-light: #73bec8;
            --blue-lighter: #ABDAD3;
            --red: #EF5350;
        }

        /* General */
        * {
            outline: 0 !important;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font);
            background-color: var(--bg);
            padding: 5% 0;
            color: var(--white);
        }

        h1 {
            font-size: 2.2em;
            font-weight: 300;
            color: var(--green);
            text-transform: uppercase;
            text-align: center;
            margin-bottom: 10%;
        }

        p {
            font-size: 1.1em;
            font-weight: 300;
            color: var(--white);
            text-align: center;
        }

        .container {
            margin-left: 250px;
        }

        /* Form Styling */
        #service-form {
            width: 80%; /* Adjust the form width to fit on screen */
            margin: 0 auto;
            padding: 20px;
            background-color: var(--bg);
            border-radius: 5px;
        }

        label {
            display: block;
            margin-bottom: 2%;
            font-size: 1.1em;
            font-weight: 300;
            color: var(--white);
        }

        input,
        select,
        textarea {
            display: block;
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            background-color: var(--bg);
            border: 2px solid var(--white);
            color: var(--green);
            font-size: 1.1em;
            font-weight: 300;
        }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: var(--green);
            outline: none;
        }

        select {
            height: 40px;
            padding-left: 5px;
        }

        .row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
        }

        .column {
            flex: 1 1 30%; /* 3 columns per row */
            min-width: 250px; /* Ensures columns are compact but adjustable */
        }

        .btn {
            display: block;
            width: 100%;
            padding: 15px;
            text-align: center;
            background-color: transparent;
            border: 3px solid var(--green);
            color: var(--green);
            text-transform: uppercase;
            font-size: 1.2em;
            cursor: pointer;
            margin-top: 3%;
            transition: color 0.25s ease;
        }

        .btn:hover {
            color: var(--bg);
            background-color: var(--green);
        }

        footer {
            text-align: center;
            font-size: 10px;
            color: var(--white);
            margin-top: 20px;
        }

        footer i {
            color: var(--red);
        }

        .alert {
            padding: 15px;
            margin: 20px 0;
            border-radius: 5px;
            text-align: center;
        }

        .alert-success {
            background-color: #4CAF50;
            color: white;
        }

        .alert-danger {
            background-color: #F44336;
            color: white;
        }
        
input[type="text"], textarea {
    text-transform: uppercase; /* Automatically capitalizes input text */
}

/* General layout styles */
body {
    margin-left: 250px;
    font-family: Arial, sans-serif;
}

/* Flexbox container for the charts */
.chart-container-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 45%;  /* Set a max width for charts */
}

/* Summary box styles */
.summary-box {
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px;
    color: #fff;
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 250px;
    font-size: 14px;
}

.summary-box h3 {
    font-size: 12px;
}

.summary-box h1 {
    font-size: 32px;
    margin-top: 10px;
}

/* Summary Box Backgrounds */
.credit-box { background-color: #28a745; }
.pending-box { background-color: #17a2b8; }  /* Light blue for pending */
.expenses-box { background-color: #ffc107; }
.profit-box { background-color: #007bff; }
.cash-box { background-color: #17a2b8; }
.upi-box { background-color: #6f42c1; }
.leads-box { background-color: #e83e8c; }

/* Flexbox for summary boxes */
.summary-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Small screen support */
@media screen and (max-width: 768px) {
    .summary-row {
        flex-direction: column;
        align-items: center;
    }

    .chart-container {
        width: 100%;
    }
}

/* Navbar Styles */
.navbar {
    background-color: #343a40;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.navbar .date-time {
    font-size: 16px;
    color: #f8f9fa;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-size: 16px;
}

.navbar .nav-links a:hover {
    color: #ffc107;
}

/* Adjustments for the live date-time container */
#live-time {
    font-size: 16px;
    color: white;
    margin-left: 20px;
}

/* Flexbox for summary boxes */
.summary-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Importing font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Namespace the styles by wrapping them in a .custom-form class */
.custom-form {
    margin-top: 100px;
    margin-left: 20%;
}

/* Ensure no global styles are affected by adding specific selectors */
.custom-form * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-form body {
    font-family: "Inter", sans-serif;
    background-color: #f4f7fc;
    padding: 40px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.custom-form .container {
    max-width: 1000px;
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.1);
}

.custom-form h2 {
    text-align: center;
    color: #07074D;
    margin-bottom: 30px;
    margin-top: 50px;
}

/* Form Layout Styling */
.custom-form form {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.custom-form .row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

/* Modify the row to have 3 columns */
.custom-form .column {
    width: 33.33%; /* Makes 3 fields per row */
    max-width: 33.33%;
}

.custom-form .form-control {
    width: 100%;
    padding: 13px 22px;
    border-radius: 5px;
    border: 1px solid #DDE3EC;
    background: #FFFFFF;
    font-weight: 500;
    font-size: 20px;
    color: #536387;
    outline: none;
    resize: none;
}

.custom-form .form-control:focus {
    border-color: #6a64f1;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}

/* Label Styling */
.custom-form label {
    color: #07074D;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    display: block;
    margin-bottom: 10px;
}

/* Submit Button Styling */
.custom-form button[type="submit"] {
    background-color: #6A64F1;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    width: 500px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.custom-form button[type="submit"]:hover {
    background-color: #4a48c3;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Alert Message Styling */
.custom-form .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.custom-form .success {
    background-color: #d4edda;
    color: #155724;
}

.custom-form .error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Pending Amount Styling */
.custom-form #pending_amount {
    background-color: #f0f0f0;
    cursor: not-allowed;
    font-weight: bold;
}

/* Responsive Styles */
.custom-form @media (max-width: 768px) {
    .custom-form .column {
        width: 100%;
        max-width: 100%;
    }
    .custom-form button[type="submit"] {
        width: 100%;
    }
    .custom-form .container {
        padding: 20px;
    }
    .custom-form h2 {
        font-size: 24px;
    }
}

/* Input Focus and Transition */
.custom-form input:focus, 
.custom-form select:focus, 
.custom-form textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(105, 91, 241, 0.5);
    border-color: #6a64f1;
}

/* Add margin below form for visual spacing */
.custom-form form {
    margin-bottom: 20px;
}

/* Style for the Pending Amount Field */
.custom-form #pending_amount {
    font-weight: bold;
    background-color: #f0f0f0;
    cursor: not-allowed;
}
/* Larger Pending Amount Display */
.pending-amount {
    text-align: right;
    margin-top: 20px;
    margin-right: 15%;
    font-size: 30px;
}

/* Adjust the Due Date input styling */
#due_date {
    width: 100%;
    padding: 13px 22px;
    border-radius: 5px;
    border: 1px solid #DDE3EC;
    background: #FFFFFF;
    font-weight: 500;
    font-size: 20px;
    color: #536387;
    outline: none;
    resize: none;
}

#due_date:focus {
    border-color: #6a64f1;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}
 .text {
        width: 920px; /* or set a fixed width like 500px */
        height: 100px; /* or adjust to the desired height */
        resize: both; /* allows resizing of the textarea */
    }