@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 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;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    /*padding-top: 1.1rem;*/
}

.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;
}

/* 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;
}

/* 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;
}

/* Product dialog responsive width */
.product-dialog.e-dialog {
    max-width: 1100px !important;
}

/* ========================================
   Shared Layout Component Styles
   ======================================== */

.layout-component-wrapper {
    position: relative;
}

.layout-component-wrapper:hover .floating-edit-btn {
    opacity: 1;
}

.floating-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #32a852;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.floating-edit-btn:hover {
    transform: scale(1.1);
    background-color: #28a745;
}

.floating-edit-btn .e-icons {
    font-size: 16px;
}

.CardPositionCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}