
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #4cc9f0;
    --light: linear-gradient(0deg, rgba(6, 11, 46, 1) 0%, rgba(5, 26, 134, 1) 50%, rgba(6, 11, 46, 1) 100%);
    --dark: #212529;
    --success: #4bb543;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Jakarta Sans', sans-serif;
    color: white;
}

.robot-builder-section {
    background: linear-gradient(0deg, rgba(6, 11, 46, 1) 0%, rgba(5, 26, 134, 1) 50%, rgba(6, 11, 46, 1) 100%);
    padding: 4rem 0;
}

/* Små tabeller - mer kompakt layout */
.table-sm > :not(caption) > * > * {
    padding: 0.25rem 0.25rem; /* mindre padding */
    background: rgba(6, 11, 46, 1); /* mörkblå bakgrund */
    color: white; /* vit text */
    border-color: rgba(255, 255, 255, 0.15); /* subtila kanter */
}


.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-subtitle {
    color: white;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.robot-card {
    background: rgba(6, 11, 46, 1);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid white;
    height: 100%;
}

.robot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.robot-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.robot-card h5 i {
    font-size: 1.2rem;
}

.robot-card small {
    color: white;
    line-height: 1.5;
}

.component {
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.component:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .drag-drop-mode .component {
        cursor: grab;
    }
    .drag-drop-mode .component:active {
        cursor: grabbing;
    }
}

.ghost {
    opacity: 0.5;
}

.robot-dropzone {
    min-height: 320px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.robot-dropzone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.03)"><polygon points="50,0 100,50 50,100 0,50"/></svg>');
    background-size: 30px 30px;
}

.empty-state {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    z-index: 1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
}

.icon-img {
  width: 1em;
  height: 1em;
  margin-right: 6px;
  vertical-align: -0.125em;
}

.icon-inline {
    width: 2em;
    height: 2em;
    margin-right: 0.4em;
    vertical-align: -0.15em;
}

.robot-instance {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.robot-instance .remove-robot {
    margin-left: auto;
    background: none;
    border: none;
    color: red;
    font-size: 2rem;
    cursor: pointer;
}



.robot-image {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 12px;
   
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.robot-image:hover {
    transform: scale(1.05);
    border-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.robot-item {
    position: relative;
    text-align: center;
}

.robot-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.selected-robots-panel {
    background:rgba(6, 11, 46, 1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.selected-robots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

#selectedItems li {
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

#selectedItems li:hover {
    background: linear-gradient(0deg, rgba(6, 11, 46, 1) 0%, rgba(5, 26, 134, 1) 50%, rgba(6, 11, 46, 1) 100%);
}

/* Quote Panel */
.quote-panel {
    background: linear-gradient(0deg, rgba(6, 11, 46, 1) 0%, rgba(5, 26, 134, 1) 50%, rgba(6, 11, 46, 1) 100%);
    color: white;
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    padding: 2rem;
}

.quote-panel table,
.quote-panel th,
.quote-panel td {
    background: transparent !important;
    color: white !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.quote-panel thead tr,
.quote-panel tfoot tr {
    background: rgba(0,0,0,0.3);
}

.quote-panel .btn-modern {
    background: linear-gradient(0deg, rgba(6, 11, 46, 1) 0%, rgba(5, 26, 134, 1) 50%, rgba(6, 11, 46, 1) 100%);
    color: white !important;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quote-panel .btn-modern:hover,
.quote-panel .btn-modern:focus,
.quote-panel .btn-modern:active {
    background: #4361ee;
    color: white !important;
}

/* Buttons */
.btn-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    color: white !important;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

.btn-outline-modern {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* Info Box */
.info-box {
    background: rgba(67, 97, 238, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--accent);
}

.info-box h6 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-box ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.info-box li {
    margin-bottom: 0.25rem;
    color:#555;
}

/* Form Control */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    border-color: var(--primary);
}

/* Badge */
.badge-modern {
    background: var(--accent);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

/* Table adjustments for panel */
.table td,
.table th {
    background-color: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.15);
    font-size: 1rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Mobile-specific improvements */
@media (max-width: 767.98px) {
    .robot-builder-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .robot-dropzone {
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .robot-image {
        width: 70px;
        height: 70px;
    }
    
    .component {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    /* Larger touch targets for mobile */
    .btn, .component, #selectedItems li button {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-primary, .me-2 {

        margin-bottom: 10px;
    }
}


