/**
 * Styles pour l'interface d'administration
 */

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.admin-panel {
    display: none;
}

.login-form {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.admin-panel.active {
    display: block;
}

.login-form.hidden {
    display: none;
}

.sidebar {
    background: #2c3e50;
    min-height: 100vh;
    padding: 20px 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #34495e;
    color: white;
}

.content-area {
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.card-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

.photo-item {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.photo-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Nouveau design compact pour les photos */
.photo-item-compact {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.photo-item-compact:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.photo-thumbnail {
    text-align: center;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.photo-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-thumbnail:hover img {
    transform: scale(1.05);
}

.photo-info {
    flex-grow: 1;
    margin-bottom: 10px;
}

.photo-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-actions .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.album-list {
    max-height: 600px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 50px auto;
        padding: 20px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    /* Sur mobile, 2 photos par ligne au lieu de 3 */
    .photo-item-compact {
        margin-bottom: 15px;
    }
    
    .photo-thumbnail img {
        height: 120px;
    }
    
    .photo-actions {
        gap: 2px;
    }
    
    .photo-actions .btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    /* Sur très petits écrans, 1 photo par ligne */
    .photo-thumbnail img {
        height: 100px;
    }
}
