/* ==========================================================
   AKO RASTIE VASE BYVANIE - ADMIN
========================================================== */

#ako-rastie-admin {
    max-width: 1200px;
    margin: 0 auto;
}

#ako-rastie-admin h3 {
    margin-bottom: 35px;
}

#ako-rastie-admin h5 {
    margin-bottom: 20px;
}


/* ==========================================================
   FORM
========================================================== */

.construction-admin-form {
    max-width: 900px;

    padding: 25px 35px;
    border-radius: 11px; 
    border: 1px solid  #C7A65F59; 
    background-color: #C7A65F12; 
    box-shadow: 0 0 20px 1px var(--tt-darkgreen-color); 

}

.admin-form-group {
    margin-bottom: 25px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 500;
}

.admin-form-control {
    display: block;

    width: 100%;
    min-height: 48px;

    padding: 11px 15px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.07);
    color: #fff;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.admin-form-control:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-form-control:focus {
    border-color: #d9b35c;
    background: rgba(255, 255, 255, 0.1);
}

textarea.admin-form-control {
    min-height: 80px;
    resize: vertical;
}

select.admin-form-control {
    cursor: pointer;
}

select.admin-form-control option {
    background: #123f3d;
    color: #fff;
}

.admin-form-hint {
    display: block;
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 12px;
}


/* ==========================================================
   CKEDITOR
========================================================== */

#ako-rastie-admin .ck-editor {
    width: 100%;
}

#ako-rastie-admin .ck-editor__main {
    color: #222;
}

#ako-rastie-admin .ck-editor__editable_inline {
    min-height: 250px;

    padding: 20px;

    background: #fff;
    color: #222;
}

#ako-rastie-admin .ck-editor__editable_inline p,
#ako-rastie-admin .ck-editor__editable_inline li,
#ako-rastie-admin .ck-editor__editable_inline h1,
#ako-rastie-admin .ck-editor__editable_inline h2,
#ako-rastie-admin .ck-editor__editable_inline h3,
#ako-rastie-admin .ck-editor__editable_inline h4,
#ako-rastie-admin .ck-editor__editable_inline h5,
#ako-rastie-admin .ck-editor__editable_inline h6 {
    color: #222;
}

#ako-rastie-admin .ck-toolbar {
    border-radius: 4px 4px 0 0;
}


/* ==========================================================
   FORM ACTIONS
========================================================== */

.admin-form-actions {
    margin-top: 30px;
    margin-bottom: 20px;
}


/* ==========================================================
   MESSAGES
========================================================== */

.admin-message {
    max-width: 900px;

    margin-bottom: 30px;
    padding: 15px 18px;

    border-radius: 4px;
}

.admin-message-success {
    background: rgba(92, 180, 100, 0.15);
    border: 1px solid rgba(92, 180, 100, 0.5);
}

.admin-message-error {
    background: rgba(220, 70, 70, 0.15);
    border: 1px solid rgba(220, 70, 70, 0.5);
}


/* ==========================================================
   CREATE FOLDER
========================================================== */

.construction-folder-form {
    max-width: 600px;
}


/* ==========================================================
   GALLERY MONTH CARD
========================================================== */

.construction-gallery-folder {
    max-width: 900px;

    margin-bottom: 24px;
    padding: 24px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.035);
}

.construction-gallery-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.construction-gallery-folder-header h6 {
    margin: 0;

    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.construction-gallery-folder-name {
    margin-right: 4px;
}

.construction-gallery-period-badge {
    display: inline-block;

    padding: 4px 10px;

    border-radius: 20px;

    background: rgba(217, 179, 92, 0.15);
    color: #d9b35c;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.construction-gallery-folder-header small {
    display: inline-block;

    margin-left: 10px;
    padding: 4px 8px;

    border-radius: 20px;

    background: #d9b35c;
    color: #123f3d;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;

    text-transform: uppercase;
}


/* ==========================================================
   ACTIVE GALLERY INFO
========================================================== */

.construction-active-gallery {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 48px;
    padding: 11px 15px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.035);
}

.construction-active-gallery strong {
    color: #fff;
}

.construction-active-gallery span {
    padding: 3px 8px;

    border-radius: 20px;

    background: rgba(217, 179, 92, 0.15);
    color: #d9b35c;

    font-size: 12px;
}

/* ==========================================================
   FILE INPUT
========================================================== */

.construction-gallery-folder input[type="file"] {
    display: block;

    width: 100%;
    max-width: 600px;

    padding: 8px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);

    font-family: inherit;
    font-size: 13px;
}

.construction-gallery-folder input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;

    border: 0;
    border-radius: 3px;

    background: #d9b35c;
    color: #123f3d;

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.construction-gallery-folder input[type="file"]::file-selector-button:hover {
    opacity: 0.9;
}


/* ==========================================================
   DELETE FOLDER
========================================================== */

.construction-delete-folder {
    margin-top: 15px;
}


/* ==========================================================
   IMAGE GRID
========================================================== */

.construction-image-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 24px;
}


/* ==========================================================
   IMAGE ITEM
========================================================== */

.construction-image-item {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.05);
}

.construction-image-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.construction-image-item:hover img {
    transform: scale(1.025);
}


/* ==========================================================
   DELETE IMAGE BUTTON
========================================================== */

.construction-image-item form {
    position: absolute;

    top: 8px;
    right: 8px;

    margin: 0;
}

.construction-image-item button {
    padding: 6px 10px;

    border: 0;
    border-radius: 20px;

    background: rgba(0, 0, 0, 0.7);
    color: #fff;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.construction-image-item:hover button {
    opacity: 1;
}

.construction-image-item button:hover {
    background: #b64b4b;
}


/* ==========================================================
   EMPTY GALLERY
========================================================== */

.construction-gallery-empty {
    margin-top: 20px;
    padding: 18px;

    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 6px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 13px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {

    .construction-image-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 991px) {

    #ako-rastie-admin {
        max-width: 100%;
    }

    .construction-admin-form,
    .construction-gallery-folder {
        max-width: 100%;
    }

}


@media (max-width: 768px) {

    .construction-image-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .construction-gallery-folder {
        padding: 20px;
    }

    .construction-gallery-folder-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .construction-gallery-folder-header small {
        margin-left: 0;
        margin-top: 6px;
    }

}


/* Touch devices - delete button must remain accessible */
@media (hover: none) {

    .construction-image-item button {
        opacity: 1;
    }

}


@media (max-width: 480px) {

    .construction-image-grid {
        grid-template-columns: 1fr;
    }

    .construction-gallery-folder {
        padding: 16px;
    }

    .admin-form-control {
        font-size: 16px;
    }

}


/* ==========================================================
   ADMIN INFO BOX
========================================================== */

.admin-info-box {
    max-width: 900px;

    margin: 0 0 40px;
    padding: 20px 22px;

    border: 1px solid rgba(217, 179, 92, 0.3);
    border-left: 3px solid #d9b35c;
    border-radius: 11px;

    background: rgba(217, 179, 92, 0.06);
}

.admin-info-box-title {
    margin-bottom: 10px;

    color: #d9b35c;

    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-info-box p {
    max-width: 760px;

    margin: 0 0 8px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;
    line-height: 1.65;
}

.admin-info-box p:last-child {
    margin-bottom: 0;
}

.admin-info-box strong {
    color: #fff;
    font-weight: 500;
}