/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #666;
    }

/* Base layout styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
}

/* Layout container */
.h-full {
    height: 100vh;
}

/* Ensure proper scrolling for main content */
.flex-1.overflow-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Dashboard specific styles */
.dashboard-container {
    height: calc(100vh - 4rem);
    overflow: hidden;
}

.request-list {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.details-container {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 1rem;
}

/* Grid layout styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

    .dashboard-grid > div {
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

.dashboard-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Form styles */
.form-container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.5rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Input focus styles */
.focus-ring {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
