/* New Image Panel Layout - Based on Mockup */

.image-panel-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.panel-top-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
}

.panel-bottom-section {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.image-panel-new:hover {
    border-color: #4a9eff;
    background: #333;
}

/* LEFT SECTION - Image */
.panel-left-new {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.panel-thumbnail-new {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}

.panel-thumbnail-new img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-image-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-filename,
.panel-title {
    font-size: 11px;
    color: #aaa;
}

.panel-filename span,
.panel-title span {
    color: #4a9eff;
    font-weight: 500;
    font-size: 12px;
    cursor: text;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s;
}

.panel-filename span:hover,
.panel-title span:hover {
    background: rgba(255, 255, 255, 0.05);
}

.panel-filename span:focus,
.panel-title span:focus {
    outline: 1px solid #4a9eff;
    background: rgba(255, 255, 255, 0.1);
}

/* MIDDLE SECTION - Categories & Description */
.panel-middle-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel-section h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.panel-section label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}

.category-badges-vertical,
.gallery-badges-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.category-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.panel-description {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    min-height: 120px;
    cursor: text;
    transition: all 0.2s;
}

.panel-description:hover {
    border-color: #666;
    background: #222;
}

.panel-description:focus {
    outline: none;
    border-color: #4a9eff;
    background: #222;
}



.gallery-badge {
    padding: 4px 10px;
    border-radius: 12px;
    background: #3a5a7a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.no-galleries {
    color: #666;
    font-size: 11px;
    font-style: italic;
}

.badge-add-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #444;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.badge-add-btn:hover {
    background: #4a9eff;
    transform: scale(1.1);
}

.panel-bottom-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-icon:hover {
    color: #999;
    transform: scale(1.1);
}

.status-icon.active {
    color: #ffd700;
}

.status-icon.fa-star.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.status-icon.fa-images.active {
    color: #4a9eff;
}

.image-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.panel-action-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.panel-bottom-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.panel-btn {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-btn i {
    font-size: 14px;
}

.btn-edit {
    background: #28a745;
    color: #fff;
}

.btn-edit:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-analyze {
    background: #007bff;
    color: #fff;
}

.btn-analyze:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-download {
    background: #17a2b8;
    color: #fff;
}

.btn-download:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-replace {
    background: #ffc107;
    color: #000;
}

.btn-replace:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: #fff;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1400px) {
    .image-panel-new {
        grid-template-columns: 300px 1fr 180px;
    }
}

@media (max-width: 1024px) {
    .image-panel-new {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .panel-right-new {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .panel-action-buttons {
        flex-direction: row;
        width: auto;
    }
}
