:root {
    --g-primary: #1a73e8;
    --g-primary-hover: #1557b0;
    --g-surface: #ffffff;
    --g-background: #f8f9fa;
    --g-border: #dadce0;
    --g-text: #202124;
    --g-text-secondary: #5f6368;
    --g-danger: #d93025;
    --g-success: #1e8e3e;
}

body {
    background-color: var(--g-background);
    color: var(--g-text);
    font-family: 'Roboto', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -250px;
    transition: margin 0.25s ease-out;
    width: 250px;
    background: var(--g-surface);
    border-right: 1px solid var(--g-border);
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

.sidebar-heading {
    padding: 1.5rem 1.25rem;
}

.list-group-item.active {
    background-color: #e8f0fe;
    color: var(--g-primary);
    border-color: transparent;
    font-weight: 500;
}

.list-group-item {
    border: none;
    padding: 10px 20px;
    color: var(--g-text-secondary);
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -250px;
    }
}

/* Material Cards */
.g-card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.g-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Material Inputs (Floating Label) */
.g-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.g-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--g-border);
    border-radius: 8px;
    background: transparent;
    outline: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.g-input:focus {
    border-color: var(--g-primary);
    box-shadow: inset 0 0 0 1px var(--g-primary);
}

.g-label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--g-text-secondary);
    background: var(--g-surface);
    padding: 0 4px;
    pointer-events: none;
    transition: 0.2s ease all;
    font-size: 0.9rem;
}

.g-input:focus~.g-label,
.g-input:not(:placeholder-shown)~.g-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--g-primary);
}

/* Buttons */
.btn-g-primary {
    background-color: var(--g-primary);
    color: white;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    border: none;
}

.btn-g-primary:hover {
    background-color: var(--g-primary-hover);
    color: white;
}

.btn-g-text {
    color: var(--g-primary);
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 8px;
}

.btn-g-text:hover {
    background-color: rgba(26, 115, 232, 0.04);
}

.btn-icon {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Table */
.g-table th {
    font-weight: 500;
    color: var(--g-text-secondary);
    border-bottom: 2px solid var(--g-border);
}

.g-table td {
    border-bottom: 1px solid var(--g-border);
    padding: 1rem 0.5rem;
}

/* Task Box */
.task-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.task-box-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--g-danger);
    cursor: pointer;
}

/* Utils */
.fs-7 {
    font-size: 0.85rem;
}

.max-h-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

.viewer-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.viewer-body h1,
.viewer-body h2 {
    margin-top: 20px;
    color: var(--g-primary);
}