/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
    --primary: #ff6b6b;
    --primary-dark: #ff5252;
    --secondary: #ffd93d;
    --accent: #6bcb77;
    --light: #f7fff7;
    --dark: #222;
    --card-shadow: 0 8px 30px rgba(0,0,0,0.1);
    --hover-shadow: 0 12px 40px rgba(0,0,0,0.15);
      --bs-table-bg: #f0f8ff; /* Light blue background - change to your color */
  --bs-table-color: #212529; /* Text color */
  --bs-table-accent-bg: rgba(0, 0, 0, 0.05); /* Striped row color */
}

/* This targets just the body rows */
.table tbody tr td,
.table tbody tr th {
     background-color: #000000;
    color: whitesmoke;
}



/* =====================================================
   GRUNDLAYOUT
===================================================== */
.automation-section {
    background: black;
    padding: 4rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #555;
}

/* =====================================================
   KORT / PANELER
===================================================== */
.component-card,
.quote-panel,
.selected-components-panel {
    background: linear-gradient(0deg, rgba(6, 11, 46, 1) 0%, rgba(185, 101, 5, 1) 50%, rgba(6, 11, 46, 1) 100%), radial-gradient(circle at top, transparent, rgba(6, 11, 46, 0.5)), radial-gradient(circle at bottom, transparent, rgba(6, 11, 46, 0.5)), radial-gradient(circle at left, transparent, rgba(6, 11, 46, 0.5)), radial-gradient(circle at right, transparent, rgba(6, 11, 46, 0.5));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}

.component-card:hover,
.quote-panel:hover,
.selected-components-panel:hover {
    box-shadow: var(--hover-shadow);
}

/* =====================================================
   PALETT / KOMPONENTER
===================================================== */
.component {
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.component:active {
    transform: scale(0.97);
}

.ghost {
    opacity: 0.5;
}

/* =====================================================
   SKÅP – BYGGZON
===================================================== */
.cabinet-zone {
    position: relative;
    min-height: 420px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e5e5e5, #cfcfcf);
    box-shadow:
        inset 0 0 0 3px #b0b0b0,
        inset 0 0 0 10px #d9d9d9,
        0 10px 35px rgba(0,0,0,0.25);
    overflow: hidden;
}

/* Dörrlinje */
.cabinet-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 2px solid rgba(0,0,0,0.15);
    border-right: 2px solid rgba(255,255,255,0.4);
    pointer-events: none;
}

/* =====================================================
   DIN-SKENOR
===================================================== */
.cabinet-rails {
    position: absolute;
    inset: 24px;
    pointer-events: none;
}

.cabinet-rail {
    height: 6px;
    margin-bottom: 90px;
    background: linear-gradient(to bottom, #999, #666 40%, #aaa);
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}

/* =====================================================
   KOMPONENTPLACERING
===================================================== */
.cabinet-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 18px;
    z-index: 2;
}

/* =====================================================
   IKONER I SKÅP
===================================================== */
.robot-item {
    position: relative;
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
    color: #222;
}

.robot-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Antalsbadge */
.robot-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   TOMT LÄGE
===================================================== */
.empty-state {
    width: 100%;
    text-align: center;
    color: rgba(0,0,0,0.5);
}

.empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.selected-components-panel h4, h3 {

    color: whitesmoke;

}

.table thead th {
    vertical-align: bottom;
   
    background: rgb(0, 0, 0) !important;
    color: whitesmoke;
}


/* =====================================================
   MOBIL
===================================================== */
@media (max-width: 767px) {
    .automation-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .cabinet-rail {
        margin-bottom: 76px;
    }

    .robot-item,
    .robot-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}
