/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0047AB; /* Blue color */
    color: white;
    padding: 10px 20px;
    position: fixed; /* Fix the navbar to the top */
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
}

/* Navbar Logo Section */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and Asset Manager text */
    margin-left: 30px; /* Adjust left margin */
}

.navbar .logo img {
    width: 30px;
    height: 30px;
}

/* Navbar Menu and Profile */
.navbar .navbar-right {
    display: flex;
    align-items: center;
    gap: 35px; /* Add space between Asset Manager text and menu */
    margin-right: 15px; /* Adjust spacing for profile button */
}

.navbar .navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px; /* Space between menu items */
}

.navbar .navbar-menu li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

.navbar .navbar-menu li a:hover {
    background-color: #555;
}

/* Hamburger Menu */
.toggle-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 10px; /* Add space around the button */
    position: absolute; /* Absolute position for the hamburger */
    left: 15px; /* Position the hamburger menu to the left */
    top: 50%; /* Vertically center it */
    transform: translateY(-50%); /* Center vertically */
    transition: left 0.3s ease; /* Smooth transition */
    z-index: 1100; /* Ensures visibility over other elements */
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 50px;
    left: -200px; /* Initially hidden */
    width: 200px;
    height: 100%;
    background-color: #333;
    color: white;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 20px;
}

.sidebar.active {
    left: 0; /* Show sidebar */
}

/* When Sidebar is active, adjust the hamburger button's position */
.sidebar.active ~ .navbar .toggle-btn {
    left: 210px; /* Move the hamburger menu to the right when sidebar is open */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 15px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
}

.sidebar ul li a:hover {
    background-color: #555;
}

/* General Reset */
*,
*::before,
*::after {
    box-sizing: border-box; /* Ensure padding and border are part of the element's total width and height */
}

/* Main Content */
.container {
    margin: 10px; /* Margin for minimal spacing */
    transition: margin-left 0.3s ease;
    max-width: 100%; /* Use the full width of the screen */
    padding-top: 60px; /* Offset content for the fixed navbar */
}

/* Style for form fields */
form {
    display: flex;
    flex-direction: column; /* Stack form elements vertically */
    gap: 6px; /* Reduced space between form rows */
    width: 100%;
}

/* Align label and input horizontally */
form > label {
    display: inline-block; /* Ensure labels are inline */
    width: 150px; /* Set a consistent label width */
    text-align: left; /* Align label text to the left */
    margin-bottom: 4px; /* Reduced space between label and input */
}

/* Make sure all form inputs have equal width, height, and margin */
form > input,
form > select,
form > textarea {
    width: 100%; /* Make inputs take full width of the container */
    height: 35px; /* Set equal height for all input fields */
    padding: 8px; /* Add padding inside input fields */
    margin-left: 0; /* No left margin */
    margin-right: 0; /* Ensure no right margin */
    border: 1px solid #ccc; /* Border for input elements */
    border-radius: 4px; /* Rounded corners */
    box-sizing: border-box; /* Ensure padding and border are inside the width */
}

/* Style for textarea to match input fields */
form > textarea {
    resize: vertical; /* Allow vertical resizing of the textarea */
    min-height: 80px; /* Reduced minimum height for textareas */
}

/* Button Styling */
form > button {
    width: 200px; /* Set width for the submit button */
    padding: 10px 15px; /* Add padding */
    background-color: #0047AB; /* Match button with navbar color */
    color: white; /* Text color */
    border: none;
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor for button */
    align-self: flex-start; /* Align button to the left */
}

form > button:hover {
    background-color: #003e91; /* Darken button color on hover */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    form {
        gap: 6px; /* Reduced gap between form fields on mobile */
    }

    form > label {
        width: 100%; /* Make label full width on mobile */
        margin-bottom: 5px; /* Less space between label and input on mobile */
    }

    form > input,
    form > select,
    form > textarea {
        margin-left: 0; /* Remove left margin on mobile */
        margin-right: 0; /* Remove right margin on mobile */
    }
}




.sidebar.active ~ .container {
    margin-left: 210px; /* Sidebar width + margin for alignment */
}

/* Footer */
.footer {
    background-color: #0047AB;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative; /* Allow footer to scroll with content */
    bottom: 0;
    width: 100%; /* Stretch across the entire width */
    z-index: 999;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow above */
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar .navbar-menu {
        display: none; /* Hide navbar menu on mobile */
    }

    .sidebar {
        left: -200px; /* Hidden sidebar */
    }

    .sidebar.active {
        left: 0;
    }

    .container {
        margin-left: 10px; /* Full width content for mobile */
    }
}
/* Table Styles */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Table Row Hover Effect */
table tbody tr:hover {
    background-color: #f4f4f4;
}

/* Checkboxes in table */
table input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Asset Badge Styles */
.badge {
    padding: 0.5em;
    font-size: 0.9em;
    border-radius: 5px;
    display: inline-block;
}

.badge.bg-success {
    background-color: #28a745; /* Green for deployed */
    color: white;
}

.badge.bg-info {
    background-color: #17a2b8; /* Blue for ready to deploy */
    color: white;
}

.badge.bg-warning {
    background-color: #ffc107; /* Yellow for pending */
    color: black;
}

.badge.bg-secondary {
    background-color: #6c757d; /* Grey for other statuses */
    color: white;
}

/* Action Buttons */
table .btn {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}

table .btn-primary {
    background-color: #0047AB;
    color: white;
}

table .btn-danger {
    background-color: #dc3545;
    color: white;
}

table .btn-warning {
    background-color: #ffc107;
    color: black;
}

table .btn-outline-secondary {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #007bff;
}

table .btn-primary:hover,
table .btn-danger:hover,
table .btn-warning:hover {
    opacity: 0.8; /* Slight opacity on hover for action buttons */
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Left-aligned Text (Showing X to Y of Z records) */
.pagination-container .record-info {
    font-size: 14px;
}

/* Right-aligned Pagination Buttons */
.pagination-container .pagination {
    display: flex;
    gap: 10px;
}

/* Pagination Buttons */
.pagination .page-item .page-link {
    padding: 6px 12px;
    border-radius: 4px;
    color: #0047AB;
    border-color: #ddd;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #0047AB;
    color: white;
}

.pagination .page-item .page-link:hover {
    background-color: #0056b3;
    color: white;
}


/* Search and Filter Bar */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-bar .form-select {
    width: auto;
}

.search-bar .btn-primary {
    padding: 6px 15px;
}

.search-bar .form-control {
    width: 250px;
    padding: 5px 10px;
    border-radius: 4px;
}

.search-bar .btn-outline-secondary {
    padding: 6px 12px;
    border-radius: 4px;
}

/* Action Buttons in Table */
td .btn-sm {
    font-size: 12px;
    padding: 4px 8px;
}

td .btn-sm i {
    font-size: 14px;
}

/* Add this to your styles.css or in the <style> block */
.card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 2rem;
    font-weight: bold;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: center;
}
