body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 50px auto;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button,
.button {
    display: inline-block;
    color: #fff;
    background: #337ab7;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
}

button:hover,
.button:hover {
    background: #286090;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

.success-message {
    color: green;
    text-align: center;
    margin-bottom: 15px;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.tool-item h3 {
    margin-top: 0;
    color: #333;
}

.tool-item p {
    color: #555;
    font-size: 0.9em;
}

.tool-item .status {
    font-weight: bold;
    margin-top: 10px;
}

.tool-item .access-button {
    margin-top: 15px;
    width: 100%;
}

.tool-item .access-button.disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.admin-table th {
    background-color: #f2f2f2;
}

.admin-actions a {
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}

.admin-actions a:hover {
    text-decoration: underline;
}

.chrome-extension-instructions {
    background: #e9f7ef;
    border: 1px solid #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Sidebar Styles */
.sidebar-accessly {
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    background-color: #2c3e50; /* Darker shade for sidebar */
    transition: all 0.3s ease;
    transform: translateX(0);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.sidebar-scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #555 #2c3e50; /* For Firefox */
    -webkit-scrollbar-width: thin; /* For Chrome/Safari */
}

/* Custom scrollbar for Webkit browsers */
.sidebar-scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-scrollable-content::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar-scrollable-content::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
    border: 2px solid #2c3e50;
}

#page-content-wrapper {
    padding: 20px;
    transition: all 0.3s ease;
    width: 100%; /* Make content take full width */
    margin-left: 0; /* Remove margin-left */
}

.footer {
    width: 100%; /* Make footer take full width */
    transition: all 0.3s ease; /* Smooth transition for footer */
    margin-left: 0; /* Remove margin-left */
}

@media (max-width: 768px) {
    .sidebar-accessly {
        transform: translateX(-250px); /* Adjust for new width */
        position: fixed; /* Use fixed for overlay */
        width: 250px; /* Adjust for new width */
    }

    .footer {
        margin-left: 0;
        width: 100%;
    }
}

/* Additional utility classes */
.text-primary-accessly {
    color: #4CAF50;
}

.bg-primary-accessly {
    background-color: #4CAF50;
}

.btn-primary-accessly {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn-primary-accessly:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.border-top-accessly {
    border-top: 1px solid #e0e0e0;
}

.border-bottom-accessly {
    border-bottom: 1px solid #e0e0e0;
}

#page-content-wrapper #sidebarToggle {
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 1001;
    background-color: transparent;
    border: none;
    color: #333;
}

@media (min-width: 769px) {
    .offcanvas-start {
        transform: translateX(0) !important;
        visibility: visible !important;
        position: sticky !important;
        height: 100vh;
        top: 0;
        width: 250px; /* Explicitly set width for desktop offcanvas */
    }

    .offcanvas-backdrop {
        display: none !important;
    }

    #page-content-wrapper #sidebarToggle {
        display: none !important;
    }

    .offcanvas-header .btn-close {
        display: none;
    }
}

.main-content-container-fluid {
    margin-top: 40px; /* Added margin to the top of the main content container */
}
