﻿#summaryText p {
    font-size: 18px;
}

.student-input {
    padding: 12px;
    font-size: 15px;
    margin-bottom: 8px;
}

#subjectsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subject-pill {
    display: inline-block;
    padding: 3px 7px;
    margin: 0 6px 6px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    white-space: nowrap;
}

.default-pill {
    background: #fff;
    color: #000;
}

.manual-pill {
    background-color: #e8f1ff;
    border-color: #5b9bd5;
    color: #1a3c6e;
    font-weight: 600;
}

    .manual-pill:hover {
        background-color: #d6e8ff;
    }

.drop-zone {
    border: 2px dashed #aaa;
    padding: 16px;
    border-radius: 10px;
    background-color: #f8f9fa;
    text-align: center;
    min-height: 150px;
}

    .drop-zone.active {
        border-color: #0d6efd;
        background-color: #eef6ff;
    }

.label-wrapper {
    position: relative;
    display: inline-block; /* oluline: wrapper = canvas'i suurus */
    margin-bottom: 15px;
}

canvas.label-canvas {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
    display: block;
}

.label-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    z-index: 10; /* et ei jääks canvas'e alla */
}

.label-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: #e9ecef;
    cursor: pointer;
    font-size: 15px;
    line-height: 24px;
    padding: 0;
}

.qty-input {
    width: 40px;
    height: 24px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #777;
    display: inline-block;
    cursor: pointer;
}

#defaultBgSwatch,
#defaultTextSwatch {
    border-width: 1px;
    width: 80px;
    padding: 2px;
    border-radius: 0px;
    height: unset;
    text-align: center;
}

.color-picker-popup .color-swatch {
    width: 32px;
    height: 32px;
    border-width: 1px;
}

.color-picker-popup {
    max-width: 300px;
}

@media (max-width: 500px) {
    .color-picker-popup {
        max-width: 90vw;
        padding: 6px;
    }

        .color-picker-popup .color-swatch {
            width: 26px;
            height: 26px;
        }
}

.preview-box {
    flex: 1;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 4px 6px;
    font-size: 14px;
    text-align: center;
}

.summary-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    font-size: 15px;
}

    .summary-box span {
        display: block;
        margin-bottom: 4px;
    }

/* taastame ruudustiku */
#selectedLabels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 16px; /* ← VAHE SILTIDE VAHEL */
    margin-top: 15px; /* natuke hingamisruumi */
}
    /* eemaldame Bootstrapi col-wrapperi kitsendused */
    #selectedLabels .col-wrapper {
        width: 100%;
        padding: 0;
    }

.color-picker-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2000;
}
