* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modify the body padding and structure */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 4rem; /* Padding for fixed navbar */
}

.login-page {
    align-items: center !important;
    justify-content: center !important;
}


.login-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.header {
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.header p {
    color: #666;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flash-message {
    background-color: #ff4d4d;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: left;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: left;
}

.remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

.submit-btn:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}

.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.signup-link {
    margin-top: 1.5rem;
    color: #666;
}

.signup-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Navigation styles */
.navbar {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.container {
    width: 100%;
    padding: 1rem;
    margin: 0 auto;
}

.navbar-menu {
    display: flex;
    justify-content: flex-end;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-item {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-item:hover {
    color: #2563eb;
    background-color: #f5f5f5;
}
/* Hero section styles */
.is-primary {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure the hero-body takes remaining space */
.hero-body {
    flex: 1;
    padding: 2rem 1rem;
    overflow: hidden; /* Prevent double scrollbars */
}



.hero-head {
    margin-bottom: 2rem;
}

/* Dashboard Layout */
/* Box container modifications */
.column.box {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 8rem); /* Account for navbar and padding */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow at container level */
}

.column.box h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Implementation List */
.column.box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.column.box li {
    background-color: #fff;
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.column.box li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.column.box li a {
    text-decoration: none;
    color: #2563eb;
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
}

.column.box li a:hover {
    color: #1d4ed8;
}

/* Table container */
.table-container {
    flex: 1;
    overflow: auto; /* Enable scrolling for table */
    margin-top: 1rem;
}

/* Table styles */
table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    background-color: white;
}



th, td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Header styles */
th {
    background-color: #2563eb;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 20; /* Higher than navbar but lower than dropdown menus if any */
}
td {
    color: #666;
    font-size: 0.9rem;
}

/* Zebra striping */
tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Hover effect */
tr:hover:not(thead tr) {
    background-color: #f0f7ff;
}

/* Link styles */
.zone-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.zone-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #2563eb;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #1d4ed8;
}

/* Select styles */
select {
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    background-color: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Back button positioning */
.back-button {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #1d4ed8;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .column.box {
        margin: 1rem;
        padding: 1rem;
    }
}
/* Responsive table */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 0.75rem 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-end {
        gap: 0.5rem;
    }

    .navbar-item {
        padding: 0.5rem;
    }

    body {
        padding-top: 3rem;
    }
}