/* --- galeria_adm_menu.php styles --- */
/* Sidebar Styles */
.sidebar {
    width: 260px;
    height:500px;
    background-color: #fff;
    border-right: 1px solid #A8A8A8;
    position: absolute; /* Changed from fixed to absolute */
    top: 80px; /* Igazítás a felső menühöz */
    bottom: 0;
    overflow-y: auto;
    padding: 2rem 0;
    z-index: 900;
}

.sidebar-header {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    text-decoration: none;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.nav-item.active {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
    color: #3b82f6;
    font-weight: 600;
}

/* Content Wrapper Style - Egységes tartalom igazítás */
.admin-content-wrapper {
    margin-left: 260px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

@media (max-width: 992px) {
    .sidebar {
        display: none; /* Mobil nézetben elrejtjük */
    }
    .admin-content-wrapper {
        margin-left: 0;
    }
}

/* --- galeria_adm_fooldal.php styles --- */
body {
    background-color: #f9fafb;
}

.header-section {
    margin-bottom: 2rem;
}

.header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.header-section p {
    color: #6b7280;
    font-size: 0.875rem;
}

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-btn {
    background: #41a9ee;
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(65, 169, 238, 0.2);
    color: white;
}

.feature-btn i,
.btn-edit i {
    color: white;
}

.feature-btn.secondary {
    background: #41a9ee;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.building-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.2s;
}

.building-card:hover {
    box-shadow: 0 8px 14px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.building-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #f3f4f6;
}

.building-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.building-content {
    padding: 1.25rem;
}

.building-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.building-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-edit {
    flex: 1;
    background-color: #41a9ee;
    color: white;
    border: none;
    padding: 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-edit:hover {
    background-color: #2563eb;
}

.btn-delete {
    background-color: transparent;
    color: #ef4444;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.125rem;
}

.btn-delete:hover {
    color: #dc2626;
}

.ai-gallery-section {
    padding: 1.5rem;
}

.ai-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.ai-gallery-item {
    aspect-ratio: 16/10;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-gallery-item:hover {
    transform: scale(1.05);
}

.ai-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- galeria_adm_epulet.php styles --- */
/* Ensure icons inside buttons are white */
.ai-render-btn i,
.delete-btn i {
    color: white;
}

.image-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Upload area styles */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    background-color: #f9fafb;
}
.upload-area:hover {
    border-color: #60a5fa;
    background-color: #eff6ff;
}
.upload-area i {
    font-size: 2rem;
    color: #60a5fa;
}
.upload-area h5 {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}
.upload-area p {
    font-size: 0.8rem;
    color: #6b7281;
    margin-bottom: 0;
}
.ai-render-btn {
    background-color: #41a9ee;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
}
.ai-render-btn:hover {
    background-color: #3498db;
}