html, body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #10131a;
    color: #f0f4ff;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(20, 26, 39, 0.9);
    backdrop-filter: blur(4px);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-menu-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-greeting {
    color: #cddfff;
    font-weight: 600;
}

.nav-link {
    color: #8ab4ff;
    text-decoration: none;
    font-weight: 600;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link:hover {
    color: #cddfff;
}

.nav-disclaimer-button {
    background: none;
    border: none;
    padding: 0.35rem 0.5rem;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-disclaimer-button:hover {
    transform: scale(1.1);
}

.disclaimer-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    color: #ffb74d;
}

.nav-disclaimer-button:hover .disclaimer-icon {
    color: #ffa726;
}

.login-required {
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.login-required h1 {
    margin-bottom: 0.5rem;
}

.login-required a {
    color: #8ab4ff;
    font-weight: 600;
}

main {
    display: flex;
    justify-content: center;
}

.content {
    width: min(960px, 100%);
}

button {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

button.secondary {
    background-color: #263238;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    background-color: rgba(138, 180, 255, 0.2);
    border-radius: 999px;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(15, 15, 20, 0.8);
    color: inherit;
    margin-bottom: 1rem;
}

select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(15, 15, 20, 0.8);
    color: inherit;
}

video {
    width: 100%;
    border-radius: 12px;
    background-color: black;
}

.capture-panel {
    margin-bottom: 1.5rem;
}

.capture-panel__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capture-preview {
    width: 100%;
    margin-bottom: 0.25rem;
}

.capture-preview__video {
    width: 100%;
    max-height: 60vh;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 12px;
    background-color: black;
}

.capture-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.recording-monitor {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.recording-monitor__label {
    font-size: 0.85rem;
    color: #cfd8dc;
}

.vu-meter {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.vu-meter__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #4caf50, #ffeb3b, #ff5722);
    transition: width 0.1s linear;
}

.entry-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.entry-card {
    padding: 1.5rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.entry-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.entry-card__header-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.entry-card__header-buttons {
    display: flex;
    gap: 0.4rem;
}

.entry-card__timestamp {
    margin: 0.25rem 0 0;
    color: #8ab4ff;
    font-size: 0.9rem;
}

.entry-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: #cfd8dc;
}

.entry-card__tags {
    margin: 0.75rem 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background-color: rgba(207, 226, 255, 0.35);
    border: 1px solid rgba(100, 181, 246, 0.9);
    font-size: 0.85rem;
    color: #e3f2fd;
    letter-spacing: 0.02em;
}

.tag-placeholder {
    font-size: 0.85rem;
    color: #90a4ae;
}

.entry-preview {
    width: 220px;
    flex: 0 0 auto;
}

.preview-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
    color: #8ab4ff;
}

.preview-button__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.6);
}

.preview-button__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-preview__player video {
    max-width: 220px;
}

.entry-preview__player .secondary {
    width: 100%;
    margin-top: 0.5rem;
}

.settings-section {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.settings-warning {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 183, 77, 0.1);
    color: #ffcc80;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f2dede;
    color: #000;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 -0.5rem 0.5rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

button.with-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

button.icon-button,
a.icon-button {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.4rem;
    border-radius: 999px;
    color: #8ab4ff;
    line-height: 0;
    min-width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

button.icon-button:hover,
a.icon-button:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

button.icon-button.danger,
a.icon-button.danger {
    color: #ff8a80;
    border-color: rgba(255, 138, 128, 0.5);
}

button.icon-button.danger:hover,
a.icon-button.danger:hover {
    color: #ff1744;
    border-color: rgba(255, 23, 68, 0.6);
}

.icon-button svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    display: block;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.form-error {
    color: #ff8a80;
    margin: 0.5rem 0;
}

.button-spinner {
    display: inline-block;
    vertical-align: middle;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: button-spin 0.75s linear infinite;
}

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

.disclaimer-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.provider-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f4ff;
    font-family: inherit;
}

.provider-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.provider-button.microsoft {
    background: rgba(47, 47, 47, 0.8);
    border-color: rgba(138, 180, 255, 0.3);
}

.provider-button.microsoft:hover {
    background: rgba(47, 47, 47, 1);
    border-color: rgba(138, 180, 255, 0.5);
}

.provider-button.google {
    background: rgba(66, 133, 244, 0.8);
    border-color: rgba(138, 180, 255, 0.3);
}

.provider-button.google:hover {
    background: rgba(66, 133, 244, 1);
    border-color: rgba(138, 180, 255, 0.5);
}
