/* AutoVibe Initial CSS for project 1743519187175 - Iteration 6 - Enhanced ERP SaaS Styles */

/* ------------------------------------------------------------ */
/*  1. Global Styles & Resets                                   */
/* ------------------------------------------------------------ */

/* Reset and Normalize */
html {
    box-sizing: border-box;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Primary font */
    font-size: 1rem;
    line-height: 1.6;
    color: #343a40; /* Dark gray body text */
    background-color: #f8f9fa; /* Light gray background */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container for main content - centered and padded */
.container {
    max-width: 1440px; /* Wider container for larger screens */
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: #ffffff; /* White container background */
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.05); /* Softer shadow */
}

/* Typography - Enhanced Font Choices and Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif; /* Secondary, more display-oriented font */
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.85rem;
    line-height: 1.2;
    color: #212529; /* Even darker heading color */
}

h1 { font-size: 3rem; } /* Larger h1 for impact */
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1.75rem;
    color: #495057; /* Slightly darker paragraph text */
}

/* Links - More Distinct and Accessible */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out; /* Transition underline too */
}

a:hover {
    color: #0056b3;
    text-decoration: underline; /* More standard underline on hover */
}

/* ------------------------------------------------------------ */
/*  2. Header Styles                                             */
/* ------------------------------------------------------------ */

header {
    background-color: #2d3748; /* Darker header background */
    color: #ffffff;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #ffffff;
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: -0.02rem; /* Slightly tighter letter spacing for headings */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li:first-child {
    margin-left: 0;
}

nav a {
    color: #e2e8f0;
    display: block;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

nav a:hover,
nav a:focus { /* Adding focus state for accessibility */
    background-color: rgba(255, 255, 255, 0.2); /* Slightly stronger hover/focus */
    color: #ffffff;
    text-decoration: none; /* Remove underline on hover for nav links */
}

.current-page-nav-item {
    background-color: rgba(255, 255, 255, 0.25); /* More prominent current page indicator */
    color: #ffffff;
    font-weight: 600;
}

/* ------------------------------------------------------------ */
/*  3. Main Section & Dashboard Styles                           */
/* ------------------------------------------------------------ */

main {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

#dashboard {
    margin-bottom: 2.5rem;
}

#dashboard h2 {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: #495057;
}

/* Dashboard Widgets - Improved Spacing and Visual Appeal */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Slightly wider widgets */
    gap: 2rem; /* Increased gap for better spacing */
}

.widget {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem; /* More rounded corners */
    padding: 1.5rem; /* Increased padding */
    box-shadow: 0 0.3rem 0.75rem rgba(0, 0, 0, 0.06); /* Subtler shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.widget:hover,
.widget:focus-within { /* focus-within for keyboard navigation inside widgets */
    transform: translateY(-5px); /* Slightly more pronounced lift on hover/focus */
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08); /* Stronger shadow on hover/focus */
}

.widget h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    color: #343a40;
}

.widget p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 1.05rem; /* Slightly larger widget paragraph text */
}

/* Module Content Styles (for content-area in script.js) */
.module-content {
    padding: 1.5rem 0;
}

.module-content ul {
    list-style: none;
    padding-left: 1.5rem; /* Indent list items */
}

.module-content ul li {
    margin-bottom: 0.75rem;
}

.module-content ul li:last-child {
    margin-bottom: 0;
}

.module-content ul li a {
    display: inline-block;
    padding: 0.5rem 0;
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent; /* Underline on hover effect */
    transition: border-bottom-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.module-content ul li a:hover,
.module-content ul li a:focus {
    color: #0056b3;
    border-bottom-color: #0056b3;
    text-decoration: none;
}


/* ------------------------------------------------------------ */
/*  4. Footer Styles                                            */
/* ------------------------------------------------------------ */

footer {
    background-color: #e9ecef;
    color: #6c757d;
    text-align: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------ */
/*  5. Form Styles                                              */
/* ------------------------------------------------------------ */

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500; /* Slightly less bold label */
    color: #495057;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.85rem; /* Slightly increased input padding */
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.5rem; /* More rounded form inputs */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 1.25rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    color: #495057;
    background-color: #ffffff;
    border-color: #007bff; /* Primary blue focus border */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Standard blue focus shadow */
}

button,
input[type="submit"],
.button {
    display: inline-block;
    font-weight: 500; /* Slightly less bold button text */
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #007bff;
    border: 1px solid #007bff;
    padding: 0.75rem 1.5rem; /* Slightly larger buttons */
    font-size: 1.05rem;
    line-height: 1.5;
    border-radius: 0.5rem; /* More rounded buttons */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
button:focus,
input[type="submit"]:focus,
.button:focus { /* Adding focus state for buttons */
    color: #ffffff;
    background-color: #0056b3;
    border-color: #0056b3;
    text-decoration: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15); /* Subtle shadow on button hover/focus */
}

.button {
    text-decoration: none;
}

/* ------------------------------------------------------------ */
/*  6. Table Styles                                             */
/* ------------------------------------------------------------ */

.table {
    width: 100%;
    margin-bottom: 1.5rem;
    color: #212529;
    border-collapse: collapse;
    border-spacing: 0; /* Reset border-spacing for cleaner tables */
}

.table th,
.table td {
    padding: 0.85rem;
    border-bottom: 1px solid #dee2e6; /* Only bottom border for cleaner look */
    text-align: left;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600; /* Slightly less bold header text */
    text-transform: uppercase; /* Optional: Uppercase table headers */
    font-size: 0.9rem;
    letter-spacing: 0.02rem;
}

.table tbody tr:last-child td {
    border-bottom: none; /* Remove border from last row for cleaner bottom edge */
}


.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03); /* Lighter stripe */
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Lighter hover */
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------ */
/*  7. Utility Classes                                          */
/* ------------------------------------------------------------ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-bold { font-weight: 600; } /* Slightly less bold utility */
.text-muted { color: #6c757d; }

/* Margin Utilities - More consistent spacing scale */
.mt-1, .my-1 { margin-top: 0.25rem; }
.mt-2, .my-2 { margin-top: 0.5rem; }
.mt-3, .my-3 { margin-top: 1rem; }
.mt-4, .my-4 { margin-top: 1.5rem; }
.mt-5, .my-5 { margin-top: 2.5rem; } /* Adjusted scale */
.mt-6, .my-6 { margin-top: 4rem; }   /* Added larger margins */

.mb-1, .my-1 { margin-bottom: 0.25rem; }
.mb-2, .my-2 { margin-bottom: 0.5rem; }
.mb-3, .my-3 { margin-bottom: 1rem; }
.mb-4, .my-4 { margin-bottom: 1.5rem; }
.mb-5, .my-5 { margin-bottom: 2.5rem; } /* Adjusted scale */
.mb-6, .my-6 { margin-bottom: 4rem; }   /* Added larger margins */

.mr-1, .mx-1 { margin-right: 0.25rem; }
.mr-2, .mx-2 { margin-right: 0.5rem; }
.mr-3, .mx-3 { margin-right: 1rem; }
.mr-4, .mx-4 { margin-right: 1.5rem; }
.mr-5, .mx-5 { margin-right: 2.5rem; } /* Adjusted scale */
.mr-6, .mx-6 { margin-right: 4rem; }   /* Added larger margins */

.ml-1, .mx-1 { margin-left: 0.25rem; }
.ml-2, .mx-2 { margin-left: 0.5rem; }
.ml-3, .mx-3 { margin-left: 1rem; }
.ml-4, .mx-4 { margin-left: 1.5rem; }
.ml-5, .mx-5 { margin-left: 2.5rem; } /* Adjusted scale */
.ml-6, .mx-6 { margin-left: 4rem; }   /* Added larger margins */

/* Padding Utilities - More consistent spacing scale */
.p-1, .py-1, .px-1 { padding: 0.25rem; }
.p-2, .py-2, .px-2 { padding: 0.5rem; }
.p-3, .py-3, .px-3 { padding: 1rem; }
.p-4, .py-4, .px-4 { padding: 1.5rem; }
.p-5, .py-5, .px-5 { padding: 2.5rem; } /* Adjusted scale */
.p-6, .py-6, .px-6 { padding: 4rem; }   /* Added larger paddings */

.pt-1, .py-1 { padding-top: 0.25rem; }
.pt-2, .py-2 { padding-top: 0.5rem; }
.pt-3, .py-3 { padding-top: 1rem; }
.pt-4, .py-4 { padding-top: 1.5rem; }
.pt-5, .py-5 { padding-top: 2.5rem; } /* Adjusted scale */
.pt-6, .py-6 { padding-top: 4rem; }   /* Added larger paddings */

.pb-1, .py-1 { padding-bottom: 0.25rem; }
.pb-2, .py-2 { padding-bottom: 0.5rem; }
.pb-3, .py-3 { padding-bottom: 1rem; }
.pb-4, .py-4 { padding-bottom: 1.5rem; }
.pb-5, .py-5 { padding-bottom: 2.5rem; } /* Adjusted scale */
.pb-6, .py-6 { padding-bottom: 4rem; }   /* Added larger paddings */

.pr-1, .px-1 { padding-right: 0.25rem; }
.pr-2, .px-2 { padding-right: 0.5rem; }
.pr-3, .px-3 { padding-right: 1rem; }
.pr-4, .px-4 { padding-right: 1.5rem; }
.pr-5, .px-5 { padding-right: 2.5rem; } /* Adjusted scale */
.pr-6, .px-6 { padding-right: 4rem; }   /* Added larger paddings */

.pl-1, .px-1 { padding-left: 0.25rem; }
.pl-2, .px-2 { padding-left: 0.5rem; }
.pl-3, .px-3 { padding-left: 1rem; }
.pl-4, .px-4 { padding-left: 1.5rem; }
.pl-5, .px-5 { padding-left: 2.5rem; } /* Adjusted scale */
.pl-6, .px-6 { padding-left: 4rem; }   /* Added larger paddings */


/* Form Grid - for more complex layouts */
.form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 1.5rem; /* Increased gap for form grid */
}

@media (min-width: 768px) { /* Medium screens and up, use 2 columns */
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) { /* Large screens and up, use more columns if needed */
    .form-grid.form-grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }
    .form-grid.form-grid-4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.form-group {
    margin-bottom: 2rem; /* Increased margin for form groups */
}

/* ------------------------------------------------------------ */
/*  8. Alerts                                                 */
/* ------------------------------------------------------------ */

.alert {
    padding: 1.25rem 1.75rem; /* Increased padding for alerts */
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.5rem; /* More rounded alerts */
}

.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d3d4d5;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-light {
    color: #818182;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.alert-dark {
    color: #1b1e21;
    background-color: #d6d8d9;
    border-color: #c6c8ca;
}

/* ------------------------------------------------------------ */
/*  9. Buttons - Variations                                     */
/* ------------------------------------------------------------ */

.btn-primary { background-color: #007bff; border-color: #007bff; color: white; }
.btn-secondary { background-color: #6c757d; border-color: #6c757d; color: white; }
.btn-success { background-color: #28a745; border-color: #28a745; color: white; }
.btn-danger { background-color: #dc3545; border-color: #dc3545; color: white; }
.btn-warning { background-color: #ffc107; border-color: #ffc107; color: black; }
.btn-info { background-color: #17a2b8; border-color: #17a2b8; color: white; }
.btn-light { background-color: #f8f9fa; border-color: #f8f9fa; color: black; }
.btn-dark { background-color: #343a40; border-color: #343a40; color: white; }

.btn-primary:hover, .btn-primary:focus { background-color: #0056b3; border-color: #0056b3; }
.btn-secondary:hover, .btn-secondary:focus { background-color: #545b62; border-color: #4e555b; }
.btn-success:hover, .btn-success:focus { background-color: #218838; border-color: #1e7e34; }
.btn-danger:hover, .btn-danger:focus { background-color: #c82333; border-color: #bd2130; }
.btn-warning:hover, .btn-warning:focus { background-color: #e0a800; border-color: #d39e00; }
.btn-info:hover, .btn-info:focus { background-color: #13849e; border-color: #117a8b; }
.btn-light:hover, .btn-light:focus { background-color: #dae0e5; border-color: #d3d9df; }
.btn-dark:hover, .btn-dark:focus { background-color: #23272b; border-color: #1d2124; }

.btn-outline-primary { background-color: transparent; border-color: #007bff; color: #007bff; }
.btn-outline-secondary { background-color: transparent; border-color: #6c757d; color: #6c757d; }
.btn-outline-success { background-color: transparent; border-color: #28a745; color: #28a745; }
.btn-outline-danger { background-color: transparent; border-color: #dc3545; color: #dc3545; }
.btn-outline-warning { background-color: transparent; border-color: #ffc107; color: #ffc107; }
.btn-outline-info { background-color: transparent; border-color: #17a2b8; color: #17a2b8; }
.btn-outline-light { background-color: transparent; border-color: #f8f9fa; color: #f8f9fa; }
.btn-outline-dark { background-color: transparent; border-color: #343a40; color: #343a40; }

.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: #007bff; color: white; }
.btn-outline-secondary:hover, .btn-outline-secondary:focus { background-color: #6c757d; color: white; }
.btn-outline-success:hover, .btn-outline-success:focus { background-color: #28a745; color: white; }
.btn-outline-danger:hover, .btn-outline-danger:focus { background-color: #dc3545; color: white; }
.btn-outline-warning:hover, .btn-outline-warning:focus { background-color: #ffc107; color: black; }
.btn-outline-info:hover, .btn-outline-info:focus { background-color: #17a2b8; color: white; }
.btn-outline-light:hover, .btn-outline-light:focus { background-color: #f8f9fa; color: black; }
.btn-outline-dark:hover, .btn-outline-dark:focus { background-color: #343a40; color: white; }


/* ------------------------------------------------------------ */
/*  10. Responsive Adjustments                                  */
/* ------------------------------------------------------------ */

@media (max-width: 1200px) { /* Slightly larger breakpoint for responsiveness */
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) { /* Medium screens */
    .container {
        max-width: 960px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        margin: 1.25rem auto;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    .dashboard-widgets {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Adjust widget width */
        gap: 1.5rem;
    }
    nav ul li {
        margin-left: 1rem;
    }
    nav a {
        padding: 0.6rem 1rem;
    }
}


@media (max-width: 768px) { /* Small screens */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        margin: 1rem auto;
        border-radius: 0; /* Remove container radius on small screens */
        box-shadow: none; /* Remove container shadow on small screens */
    }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.6rem; }

    header {
        padding-top: 1rem;
        padding-bottom: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    header .container {
        flex-direction: column;
        align-items: center;
    }
    header h1 {
        padding-left: 0;
        font-size: 2.25rem;
        margin-bottom: 0.6rem;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
        padding-left: 0;
        margin-top: 0.6rem;
    }
    nav ul li {
        margin: 0.6rem 0;
        margin-left: 0;
    }
    .dashboard-widgets {
        grid-template-columns: 1fr; /* Stack widgets on small screens */
        gap: 1.5rem;
    }
    .form-grid { /* Stack form grid on small screens */
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) { /* Extra small screens */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}