/* assets/css/admin.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

#admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

header h1 {
    color: #333;
    font-size: 1.8rem;
}

header h1 i {
    color: #f0c14b;
    margin-right: 10px;
}

.view-album-btn {
    background-color: #4a4a4a;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.view-album-btn i {
    margin-right: 8px;
}

.view-album-btn:hover {
    background-color: #333;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.tab-btn i {
    margin-right: 8px;
}

.tab-btn:hover {
    background-color: #f0f0f0;
}

.tab-btn.active {
    border-bottom-color: #f0c14b;
    color: #f0c14b;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.file-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    margin-top: 20px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #f0c14b;
    color: #333;
}

.btn-primary:hover {
    background-color: #e0b040;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Upload Form */
.upload-form {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Categories Management */
.categories-management {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.add-category {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.categories-list ul {
    list-style: none;
}

.categories-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

/* Photos Management */
.photos-management {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.photo-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.photo-thumbnail {
    height: 200px;
    overflow: hidden;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-card:hover .photo-thumbnail img {
    transform: scale(1.05);
}

.photo-details {
    padding: 15px;
}

.photo-details h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.photo-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.photo-meta .category {
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
}

.photo-description {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    #admin-container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .photos-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }
}
/* Pagination */
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.page-btn:hover {
    background-color: #e0e0e0;
}

.page-btn.active {
    background-color: #f0c14b;
    color: #333;
}

.page-dots {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}
/* Add to admin.css */

.file-upload-container {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.file-upload-container:hover {
    border-color: #f0c14b;
    background-color: #fff;
}

.file-upload-container.dragover {
    border-color: #f0c14b;
    background-color: rgba(240, 193, 75, 0.1);
}

#photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-upload-label i {
    font-size: 2rem;
    color: #6c757d;
}

.file-upload-label span {
    font-size: 1.1rem;
    color: #333;
}

.file-upload-label small {
    color: #6c757d;
}

.file-list {
    margin-top: 15px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-item i {
    margin-right: 10px;
    color: #6c757d;
}

.file-item .file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-size {
    margin-left: 10px;
    color: #6c757d;
    font-size: 0.9rem;
}

.file-item .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    margin-left: 10px;
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #f0c14b;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: bold;
    color: #333;
}
/* Add to admin.css */
.form-help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}
/* Add to admin.css */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-message {
    color: #f0c14b;
    font-weight: 500;
}

.logout-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.logout-btn i {
    margin-right: 8px;
}

/* Adjust header for new layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    backdrop-filter: blur(10px);
    z-index: 100;
    position: relative;
    margin-bottom: 20px;
}
/* Add to admin.css */

.category-info {
    flex: 1;
}

.category-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.category-folder {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

.edit-category-btn {
    padding: 5px 10px;
    font-size: 0.9rem;
}