:root {
    --qd-bg: #f4f7f9;
    --qd-surface: #ffffff;
    --qd-border: #cccccc;
    --qd-text: #333333;
    --qd-muted: #666666;
    --qd-primary: #0071b9;
    /* Dataiku Action Blue */
    --qd-primary-dark: #005a94;
    --qd-primary-soft: rgba(0, 113, 185, 0.05);
    --qd-app-navy-blue: rgb(13, 59, 115);
    --qd-success: #21835d;
    --qd-warning: #ffc107;
    --qd-danger: #d93025;
}

.qd-app-color {
    color: var(--qd-app-navy-blue);
}

.qd-app-bg {
    background-color: var(--qd-app-navy-blue);
}

.qd-btn {
    border: none;
    background-color: var(--qd-app-navy-blue);
    color: #fff;
}

.qd-btn:hover {
    background-color: var(--qd-app-navy-blue);
    color: #fff;
}

/* HEADER - Industrial Style */
.qd-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    /* Dataiku Dark Navy Header */
    color: white;
    /* border-bottom: 1px solid #1a2633; */
    padding: 10px 20px;
}

.qd-header button {
    border-radius: 5px !important;
}

.qd-logo {
    height: 32px;
    margin-right: 10px;
}

.qd-icon-btn {
    background: transparent;
    border: 1px solid transparent;
    font-size: 16px;
    width: 36px;
    height: 36px;
    color: #8da2b5;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qd-icon-btn:hover {
    border-radius: 10px !important;
    background: rgb(192, 192, 192) !important;
    color: #0c0646;
}

.qd-primary-btn {
    padding: 8px 24px;
    font-size: 12px;
    /* Small font for actions */
    font-weight: 600;
    background: var(--qd-primary);
    color: white;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    /* Dataiku uses flat UI */
    transition: background 0.2s;
}

.qd-primary-btn:hover {
    background: var(--qd-primary-dark);
}

/* CARDS - High Density Blocks */
.qd-card {
    background: var(--qd-surface);
    border: 1px solid var(--qd-border);
    padding: 20px;
    height: 100%;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.qd-card:hover {
    border-color: var(--qd-primary);
}

.qd-card-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--qd-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--qd-primary);
    font-size: 18px;
}

.qd-card h6 {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: #2b3d4f;
}

.qd-card p {
    font-size: 12px;
    color: var(--qd-muted);
    flex-grow: 1;
}

.qd-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--qd-warning);
    padding: 2px 8px;
    display: inline-block;
    margin-bottom: 12px;
}

/* LOADER SECTION */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.custom-loader {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(0, 113, 185, 0.1);
    border-top-color: var(--qd-primary);
    animation: premium-spin 0.8s linear infinite;
}

.loader-text {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #2b3d4f;
    text-transform: uppercase;
}

/* NOTIFICATION SECTION */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#notification-container .toast {
    background: #ffffff;
    border: 1px solid #cccccc;
    border-left: 4px solid var(--qd-primary);
    padding: 12px;
    font-size: 12px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
}

.toast.bg-success {
    border-left-color: var(--qd-success);
}

.toast.bg-warning {
    border-left-color: var(--qd-warning);
}

.toast.bg-danger {
    border-left-color: var(--qd-danger);
}

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

@media (max-width: 576px) {
    .qd-primary-btn {
        font-size: 11px;
        padding: 6px 16px;
    }
}