/* CSS for Packaging Manager Integration */

/* Grid for Packaging Items */
.embalagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
}

.emb-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.emb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.emb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.emb-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.emb-brand {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.emb-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
}

/* Cores por status podem ser adicionadas */
.emb-status-produzindo {
    background: #dcfce7;
    color: #166534;
}

.emb-status-criacao {
    background: #eff6ff;
    color: #1e40af;
}

.emb-details {
    font-size: 13px;
    color: #475569;
}

.emb-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-group label {
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ROADMAP STYLES (adapted) */
/* ROADMAP STYLES - Fluid Layout */
.roadmap-container-scroll {
    width: 100%;
    margin-top: 10px;
}

.roadmap {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Hide the old physical link divs */
.link {
    display: none;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    min-width: 0;
    /* Allow shrinking below content size */
    pointer-events: auto;
}

/* Connecting Line using Pseudo-element */
.step::after {
    content: '';
    position: absolute;
    top: 20px;
    /* Center with circle (height 40px / 2) */
    left: 50%;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

/* Hide line for the last step */
.step:last-child::after {
    display: none;
}

/* Color the line if step is done */
.step.done::after {
    background: #bae6fd;
}

/* Adjust Circle z-index to sit on top of line */
.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    color: #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

/* Completed Steps - Light Blue */
.step.done .circle {
    background: #e0f2fe;
    /* light blue bg */
    color: #0ea5e9;
    /* sky blue icon */
    border-color: #bae6fd;
}

.step.done::after {
    background: #bae6fd !important;
}

/* Current Step - Royal Blue & Pulsing */
.step.current .circle {
    background: #2563eb;
    /* Royal blue */
    color: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulse-blue 1.5s infinite;
}

.step.current .caption {
    color: #2563eb;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Modal sizing fix */
.modal-lg {
    max-width: 800px;
    width: 90%;
}

/* Modal Header Fix */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.modal-header h3 {
    margin: 0 !important;
    /* Force override modal-card h3 margin */
    font-size: 18px;
    color: #1e293b;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ef4444;
}