
    .dashboard-card {
        position: relative;
        background: linear-gradient(135deg, #383a3b, #1b2735);
        /* background: linear-gradient(135deg, #243447, #1b2735); */
        /* border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px; */
         /* border: 0px solid rgba(255,255,255,0.08); */
         border: 2px solid rgba(243, 238, 238, 0.973);
        border-radius: 0px;
        /* box-shadow: 0 0 20px rgba(0,0,0,0.4); */
        box-shadow: 0 0 10px rgba(0,0,0,0.4);
        overflow: hidden;
    }

/* Corner base */
.corner {
    position: absolute;
    /* width: 22px; */
    width: 22px;
    height: 22px;
    border-color: rgba(255,255,255,0.35);
}

/* Individual corners */
.top-left {
    /* top: 10px;
    left: 10px;
    border-top: 2px solid;
    border-left: 2px solid; */

    top: 2px;
    left: 2px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.top-right {
    /* top: 10px;
    right: 10px; */
    top: 2px;
    right: 2px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.bottom-left {
    /* bottom: 10px;
    left: 10px; */
    bottom: 2px;
    left: 2px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.bottom-right {
    /* bottom: 10px;
    right: 10px; */
    bottom: 2px;
    right: 2px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* Mini chart */
.mini-chart {
    height: 60px;
}

.bar {
    width: 6px;
    background: linear-gradient(to top, #3ddc97, #2bb673);
    border-radius: 2px;
    animation: grow 1s ease-out;
}

/* Animation */
@keyframes grow {
    from { height: 0; }
}

/* Tablet */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.grid-item {
    background: #243447;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.row.custom-gap > div {
    padding-left: 15px;
    padding-right: 5px;
}

/* Slide Panels */
.side-panel {
    position: fixed;
    top: 0;
    width: 260px;
    height: 100%;
    background: #1b2735;
    color: #fff;
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Left panel */
#leftPanel {
    left: -260px;
}

/* Right panel */
#rightPanel {
    right: -260px;
}

/* Active states */
#leftPanel.active {
    left: 0;
}

#rightPanel.active {
    right: 0;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1040;
}


/* Floating Panel */
.settings-panel {
    position: fixed;
    /* right: 20px;
    top: 60px; */
    width: 260px;
    background: #3c4b55;
    color: #fff;
    border-radius: 8px;
    padding: 15px;
    z-index: 2000;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    font-family: Arial, sans-serif;
}

/* Section */
.settings-section {
    margin-bottom: 20px;
}

.settings-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Dashed box */
.settings-box {
    border: 2px dashed rgba(255,255,255,0.4);
    padding: 10px;
}

/* Display mode (images) */
.display-grid {
    display: flex;
    gap: 10px;
}

.display-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.display-item img {
    width: 100%;
    border-radius: 4px;
    border: 2px solid transparent;
}

.display-item.active img {
    border-color: #00d4ff;
}

/* Direction buttons */
.direction-grid {
    display: flex;
    gap: 10px;
}

.direction-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    text-align: center;
    cursor: pointer;
}

.direction-btn.active {
    background: #1abc9c;
}

/* Color grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-box {
    width: 100%;
    height: 30px;
    cursor: pointer;
    position: relative;
}

.color-box.active::after {
    content: "✔";
    position: absolute;
    color: #fff;
    font-size: 14px;
    top: 4px;
    left: 8px;
}

/* Theme cover grid */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cover-item img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.cover-item.active img {
    border-color: #00d4ff;
}

#x32 {
    position: fixed;              /* makes it an overlay */
    top: 100px;
    left: 100px;
    width: 200px;
    height: 120px;
    background: rgba(30, 42, 56, 0.95);
    color: white;
    border-radius: 10px;
    padding: 10px;
    cursor: move;
    z-index: 9999;                /* stays on top */

    /* optional styling */
    /* box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1); */
}
.drag-header {
    cursor: move;
    background: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 6px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Overlay background */
.overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

/* Slide-out window */
.slide-window {
    position: fixed;
    top: 0;
    right: -400px; /* hidden */
    width: 400px;
    height: 300px;
    background: #fff;
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Open state */
.slide-window.open {
    right: 0;
}

/* Header */
.slide-window .header {
    background: #222;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Content */
.slide-window .content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 3 */
/* Overlay */
.overlay3 {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
    display: none;
    z-index: 999;
}

/* Window */
.window {
    position: fixed;
    top: 100px;
    right: -450px; /* start off screen */
    width: 400px;
    height: 300px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Open state */
.window.open {
    right: 50px;
}

/* Header (drag handle) */
.window-header {
    background: #1f2937;
    color: white;
    padding: 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Body */
.window-body {
    padding: 15px;
    flex: 1;
}