@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/open-iconic@1.1.1/font/css/open-iconic-bootstrap.min.css');

:root {
    --primary-color: #6baa5e;
    --secondary-color: #1a1a3a;
    --accent-color: #e74c3c;
    --light-color: #e6eaef;
    --dark-color: #2a2a4a;
}

html, body {
    font-family: 'Roboto', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

.page {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--light-color);
}

.sidebar {
    background-color: var(--secondary-color);
    color: var(--light-color);
    width: 200px;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    border: none;
    margin: 0;
    padding: 0;
}

.top-row {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-bottom: none;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.top-row a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--light-color);
}

.top-row a:hover {
    color: white;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    width: calc(100% - 200px);
    margin-left: 200px;
    border: none;
}

.content {
    padding-top: 1.1rem;
    flex: 1;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    justify-content: center;
    white-space: nowrap;
}

.nav-item a.active {
    background-color: var(--secondary-color);
    color: white;
}

.nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

.sidebar {
    transition: width 0.3s ease;
}

main {
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: var(--secondary-color) !important;
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5c9950;
    border-color: #5c9950;
}

.jumbotron {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 0.3rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.jumbotron h1 {
    color: var(--light-color);
    font-weight: 700;
}

.jumbotron .lead {
    color: var(--light-color);
    font-weight: 400;
    opacity: 0.9;
}

.jumbotron p {
    color: var(--light-color);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .page {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        z-index: auto;
    }

    .top-row {
        justify-content: space-between;
        width: 100%;
    }

    main {
        width: 100%;
        height: auto;
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .content {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Table resizer styles */
.resizable-table th {
    position: relative;
    overflow: hidden;
}

.resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: col-resize;
    user-select: none;
    touch-action: none;
}

.resizer:hover,
.resizing .resizer {
    background-color: var(--primary-color);
}

body.resizing {
    cursor: col-resize;
}

/* Export button styles */
.btn-export {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.btn-export:hover {
    background-color: var(--dark-color);
    color: white;
}
