@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


/* === GLOBAL RESET === */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* === ROOT VARIABLES === */
:root {
    --card-bg: #ffffff;
    --card-text: #333;
    --border: rgba(0,0,0,0.1);
    --text: #222;
    --muted: #666;
}

body.dark {
    --card-bg: #1e1e2f;
    --card-text: #f0f0f0;
    background-color: #121212;
    color: white;
}

/* === HERO PANELS === */
.hero {
    background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(16,185,129,.08));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-icon img {
    width: 40px;
    height: 40px;
}

.hero-title {
    margin: 0;
    color: var(--text);
}

.hero-subtitle {
    margin: 2px 0 0;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* === CARDS & HOVER EFFECTS === */
.hover-tile:hover,
.info-card:hover,
.dashboard-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.card-click-wrapper,
.clickable-tile {
    cursor: pointer;
}

    .clickable-tile:hover {
        transform: translateY(-2px);
    }

/* === STATUS BADGES === */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

    .status-badge.enabled {
        background-color: #d1f7c4;
        color: #2f6627;
    }

    .status-badge.disabled {
        background-color: #f5c6cb;
        color: #721c24;
    }

/* === TEXT + TYPOGRAPHY === */
.pageheader {
    font-family: sans-serif !important;
    font-size: 24px !important;
    color: #333;
    font-weight: bold !important;
}

.pagecontent {
    font-family: sans-serif !important;
    font-size: 16px;
    color: #333;
    letter-spacing: 0.34px;
    line-height: 24px;
    margin-top: 10px;
}

.productheader, .list {
    font-family: sans-serif !important;
    color: #333;
}

.productheader {
    font-size: 19px !important;
    letter-spacing: 0.41px;
}

.list {
    float: left;
    line-height: 40px;
    min-width: 280px;
    font-size: 19px;
    color: #0073DC;
}

/* === INTEGRATION TILES === */
.integration-tile {
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

    .integration-tile:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        transform: translateY(-2px);
    }

    .integration-tile.disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.integration-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.integration-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.icon-lf, .icon-db, .icon-quantios {
    background-color: #fff;
}

.icon-generic {
    background-color: #f5f5f5;
}

/* === INTEGRATION CARDS === */
.integration-card {
    background: linear-gradient(180deg, #f9fafc, #f4f6f8);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.25s ease-in-out;
    padding: 0.75rem 1rem;
    text-align: center;
}

    .integration-card:hover {
        transform: translateY(-3px);
        background: linear-gradient(180deg, #fff, #f8f9fa);
        border-color: rgba(0,0,0,0.15);
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }

    .integration-card > *:last-child {
        margin-bottom: 0 !important;
    }

.integration-section h6 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #444;
}

/* === SECTION LAYOUT === */
@media (min-width: 992px) {
    .section-row {
        position: relative;
    }

        .section-row::after {
            content: "";
            position: absolute;
            top: 5%;
            bottom: 5%;
            left: 50%;
            width: 1px;
            background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
            transform: translateX(-50%);
        }

    .integration-section {
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
    }

        .integration-section:nth-child(odd) {
            background: linear-gradient(to right, rgba(247,248,251,0.9), rgba(255,255,255,0));
        }

        .integration-section:nth-child(even) {
            background: linear-gradient(to left, rgba(247,248,251,0.9), rgba(255,255,255,0));
        }
}

/* === INFO CARDS === */
.info-card {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    color: var(--card-text);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.info-logo, .info-icon {
    height: 32px;
    width: 32px;
    margin-right: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.info-icon {
    font-size: 32px;
}

.info-title {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--card-text);
}

/* === DASHBOARD CARDS === */
.dashboard-card {
    background-color: var(--card-bg);
    color: var(--card-text);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

/* === LIVE CONSOLE === */
.live-console {
    flex: 1;
    background: #444;
    color: #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    overflow-y: auto;
    margin-top: 10px;
}

.console-table thead {
    background-color: #555;
    color: #fff;
    text-align: left;
}

.console-table th, .console-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #666;
    vertical-align: top;
    text-align: left;
}

.console-table tr:hover {
    background-color: rgba(255,255,255,0.05);
}

.console-timestamp {
    min-width: 160px;
    font-weight: bold;
    color: #8be9fd;
}

.console-level {
    min-width: 90px;
    font-weight: bold;
    color: #ffb86c;
}

.console-message {
    min-width: 140px;
    color: #50fa7b;
}

.console-detail {
    color: #f1fa8c;
    word-break: break-word;
}

/* === LAYOUT BASICS === */
.layout-container {
    padding-top: 64px;
}

.rz-application {
    display: flex;
    min-height: 100vh;
}

.rz-body, .rz-main {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rz-sidebar {
    background-color: var(--rz-sidebar-bg, #e6f0fa);
}

.rz-header {
    height: var(--rz-header-height, 56px);
}

.rz-content {
    flex: 1;
    overflow-y: auto;
}

/* === RESPONSIVE === */
@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        min-height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 1.1rem;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        display: block;
    }
}
