/* 
* Dann & Daniël Wedding Admin Styles
* Author: AI Assistant
* Version: 1.0
*/

/* ===== Admin Base Styles ===== */
:root {
    --admin-primary: #6b8e23; /* Olive green */
    --admin-secondary: #d4af37; /* Gold */
    --admin-dark: #343a40;
    --admin-light: #f8f9fa;
}

.admin-body {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.admin-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.admin-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.admin-card .card-body {
    padding: 1.5rem;
}

/* ===== Login Page ===== */
.login-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    margin-top: 100px;
}

.login-title {
    color: var(--admin-primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

/* ===== Dashboard Stats ===== */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* ===== DataTables Customization ===== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 1rem;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--admin-primary) !important;
    border-color: var(--admin-primary) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--admin-secondary) !important;
    border-color: var(--admin-secondary) !important;
    color: white !important;
}

/* ===== Action Buttons ===== */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.view {
    background-color: var(--admin-primary);
}

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

/* ===== Photo Gallery Styles ===== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: #fff;
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.photo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-action:hover {
    transform: scale(1.1);
}

.photo-action.download {
    color: var(--admin-primary);
}

.photo-action.view {
    color: #007bff;
}

.photo-action.delete {
    color: #dc3545;
}

.photo-details {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.photo-name {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
}

.photo-filter-bar {
    margin-bottom: 1.5rem;
}

/* ===== Photo Lightbox ===== */
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
}

/* ===== Responsive Styles ===== */
@media (max-width: 767.98px) {
    .login-container {
        padding: 1.5rem;
        margin-top: 50px;
    }
    
    .admin-card .card-body {
        padding: 1rem;
    }
}

/* ===== Gift Manager Styles ===== */
.gift-image-preview {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 3px;
    background-color: #f8f9fa;
    margin: 0 auto;
    display: block;
}

.gift-image-preview:hover {
    transform: scale(1.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
} 