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

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: transparent;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
.nav {
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav a {
    color: #cbd5e0;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: capitalize;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.nav a.router-link-active {
    background: rgba(139, 116, 234, 0.3);
    color: #c4b5fd;
    border-color: rgba(139, 116, 234, 0.4);
}

/* Main content area */
main, .content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Data table styles */
.a_o_model_data_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 1.5rem;
}

.a_o_model_data_table th,
.a_o_model_data_table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
}

.a_o_model_data_table th {
    background: rgba(255, 255, 255, 0.04);
    color: #a0aec0;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.a_o_model_data_table tr.o_instance:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.a_o_model_data_table tr.o_instance:hover {
    background: rgba(139, 116, 234, 0.1);
}

.a_o_model_data_table td {
    color: #cbd5e0;
}

.a_o_model_data_table tr:last-child td {
    border-bottom: none;
}

/* Model selection styles */
.a_o_model {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
}

.a_o_model .o_model {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(8px);
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
    text-transform: capitalize;
}

.a_o_model .o_model:hover {
    transform: translateY(-1px);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}

.a_o_model .o_model.active {
    background: rgba(139, 116, 234, 0.25);
    color: #c4b5fd;
    border-color: rgba(139, 116, 234, 0.5);
}

/* Create form styles */
.o_form__create {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.o_form__create .s_label__create {
    font-weight: 600;
    color: #a0aec0;
    white-space: nowrap;
    text-transform: capitalize;
}

.o_form__create .a_o_input {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.o_form__create .o_input_group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 120px;
}

.o_form__create .o_input_group span {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.o_form__create .o_input_group input {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.o_form__create .o_input_group input::placeholder {
    color: #4a5568;
}

.o_form__create .o_input_group input:focus {
    border-color: rgba(139, 116, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 116, 234, 0.15);
}

.o_form__create .btn__create {
    padding: 0.55rem 1.5rem;
    background: rgba(139, 116, 234, 0.25);
    color: #c4b5fd;
    border: 1px solid rgba(139, 116, 234, 0.4);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.o_form__create .btn__create:hover {
    transform: translateY(-1px);
    background: rgba(139, 116, 234, 0.4);
    box-shadow: 0 4px 12px rgba(139, 116, 234, 0.25);
}

/* Toast styles */
.a_o_toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.6rem;
    z-index: 9999;
    pointer-events: none;
    max-width: 360px;
}

.a_o_toast .o_toast {
    padding: 0.8rem 1.25rem;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    color: #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    animation: toast_slide_in 0.3s ease forwards;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.a_o_toast .o_toast.info {
    border-color: rgba(66, 153, 225, 0.4);
    background: rgba(43, 108, 176, 0.6);
}

.a_o_toast .o_toast.success {
    border-color: rgba(72, 187, 120, 0.4);
    background: rgba(39, 103, 73, 0.6);
}

.a_o_toast .o_toast.warning {
    border-color: rgba(237, 137, 54, 0.4);
    background: rgba(151, 90, 22, 0.6);
}

.a_o_toast .o_toast.error {
    border-color: rgba(252, 129, 129, 0.4);
    background: rgba(155, 44, 44, 0.6);
}

.a_o_toast .o_toast.expired {
    opacity: 0;
    display: none;
    transform: translateX(100%);
    pointer-events: none;
}

@keyframes toast_slide_in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* File browser */
.o_filebrowser {
    padding: 1rem 2rem;
    max-width: 800px;
}

.o_filebrowser__path_bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.o_filebrowser__path_bar .btn__up {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: #a0aec0;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s;
    flex-shrink: 0;
}

.o_filebrowser__path_bar .btn__up:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.o_filebrowser__path_bar .btn__up:disabled {
    opacity: 0.3;
    cursor: default;
}

.o_filebrowser__path {
    font-size: 0.85rem;
    color: #718096;
    word-break: break-all;
}

.o_filebrowser__list {
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    overflow: hidden;
}

.o_fsnode {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    transition: background 0.1s;
}

.o_fsnode:last-child {
    border-bottom: none;
}

.o_fsnode.folder {
    cursor: pointer;
    color: #cbd5e0;
}

.o_fsnode.folder:hover {
    background: rgba(139, 116, 234, 0.12);
    color: #e2e8f0;
}

.o_fsnode.file {
    color: #4a5568;
    cursor: default;
}

.o_fsnode__type {
    font-size: 0.72rem;
    color: #4a5568;
    min-width: 2.5rem;
    font-family: monospace;
}

/* Landing page */
.o_component__landing {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #000;
}

.o_component__landing canvas {
    position: absolute;
    inset: 0;
}

.s_title__landing {
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.06em;
    white-space: nowrap;
    color: #e8f0ff;
    text-shadow:
        0 0 20px rgba(160, 190, 255, 0.9),
        0 0 60px rgba(100, 140, 255, 0.5),
        0 0 120px rgba(80, 120, 255, 0.25);
    user-select: none;
    z-index: 1;
}

.el__words__landing {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.1rem, 0.6vw, 0.6rem);
    pointer-events: none;
    z-index: 1;
}

.el__word__landing {
    font-size: clamp(2rem, 5.5vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.04em;
    line-height: 1.1;
    opacity: 0;
    user-select: none;
    text-shadow:
        0 0 16px rgba(0, 255, 70, 1),
        0 0 50px rgba(0, 255, 70, 0.55),
        0 0 100px rgba(0, 255, 70, 0.25);
}
