@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* font-family is owned by the design-system root rule in
   wwwroot/css/design-system/colors_and_type.css (var(--font-sans), Geist).
   Do NOT re-declare it here — that override blocked Geist from inheriting
   across the app. */

/* ========================================
   Blazor Baseline
   ======================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

/* ========================================
   Syncfusion Global Overrides
   ======================================== */

/* Sidebar full height fix */
.e-sidebar {
    height: 100vh !important;
    min-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
}

.dockSidebar.e-sidebar {
    height: 100vh !important;
    min-height: 100vh !important;
}

/* Dialog Tab styling - cleaner design (override Syncfusion blue defaults) */
.e-dialog .e-tab .e-tab-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.e-dialog .e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    color: #555 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.e-dialog .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text {
    color: #333 !important;
    font-weight: 600 !important;
}

.e-dialog .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
    border-bottom: 2px solid #333 !important;
}

/* Fixed minimum height for dialog tab content to prevent resizing when switching tabs */
.e-dialog .e-tab .e-content {
    min-height: 520px !important;
}

.e-dialog .e-tab .e-content .e-item {
    min-height: 520px !important;
}

.e-dialog .e-tab .e-tab-header .e-indicator {
    background-color: #333 !important;
}

.e-dialog .e-tab .e-tab-header .e-toolbar-item:not(.e-active) .e-tab-text:hover {
    color: #333 !important;
}

.e-dialog .e-tab .e-tab-header .e-toolbar-item .e-tab-wrap:hover {
    background-color: #f0f0f0 !important;
}

/* ========================================
   Shared Layout Components
   ======================================== */

/* Template card height alignment */
.template-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-card .e-card-header {
    justify-content: flex-start !important;
}

.template-card .e-card-content {
    flex: 1;
}

.template-card .e-card-actions {
    margin-top: auto;
}

.layout-component-wrapper {
    position: relative;
}

.layout-component-wrapper:hover .floating-edit-btn {
    opacity: 1;
}

.floating-edit-btn {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background-color: var(--status-ok);
    border: none;
    color: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--motion-duration) var(--motion-curve),
                transform var(--motion-duration) var(--motion-curve);
    z-index: 10;
    box-shadow: var(--elevation-2);
}

.floating-edit-btn:hover {
    transform: scale(1.1);
    background-color: var(--status-ok);
    filter: brightness(0.92);
}

.floating-edit-btn .e-icons {
    font-size: 16px;
}

.CardPositionCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Shared layout title/subtitle (used by TwoColumnLeftRightLayout, ThreeColumnLayout, etc.) */
.layout-title-block {
    margin-top: var(--space-12);
    margin-bottom: var(--space-12);
}

.layout-title {
    font-size: var(--size-700);
    color: var(--text-secondary);
    text-align: center;
    font-family: var(--font-sans);
}

.layout-subtitle {
    font-size: var(--size-500);
    color: var(--text-secondary);
    text-align: center;
    font-family: var(--font-sans);
}
