* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.upload-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-card {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Definizione btn-delete rimossa - usa quella completa più sotto */

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.auth-links {
    text-align: center;
    margin-top: 15px;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.clients-section,
.albums-section {
    margin: 30px 0;
}

.clients-list,
.albums-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.client-card,
.album-card {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.client-card h3,
.album-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.album-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.no-albums {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 5px;
    margin: 20px 0;
}

.status-pending {
    color: #f0ad4e;
}

.status-approved {
    color: #5bc0de;
}

.status-completed {
    color: #5cb85c;
}

.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 20px auto;
}

.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    user-select: none;
}

.photo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    pointer-events: none;
    transition: transform 0.2s;
}

.photo-image:hover {
    transform: scale(1.1);
}

.heart-checkbox {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.heart-checkbox i {
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
}

.heart-checkbox.selected i {
    color: #dc3545;
    transform: scale(1.1);
}

.heart-checkbox:hover {
    transform: scale(1.1);
}

.heart-checkbox:active {
    transform: scale(0.95);
}

.selection-complete {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
}

.selection-complete:hover {
    background-color: #218838;
}

.btn-success {
    background-color: #28a745;
    margin-left: 10px;
}

.btn-success:hover {
    background-color: #218838;
}

.selected-count {
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
}

/* Stile per le foto non selezionate quando l'album è completato */
.photo-item.not-selected {
    opacity: 0.5;
}

.client-card {
    position: relative;
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-info {
    flex: 1;
}

.client-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.client-info p {
    margin: 5px 0;
    color: #666;
}

.client-actions {
    margin-left: 20px;
}

.btn-delete {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    min-width: 140px;
    justify-content: center;
}

.btn-delete:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.btn-delete:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.btn-delete i {
    font-size: 14px;
    margin-right: 5px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.btn-create-album {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-create-album:hover {
    background-color: #218838;
}

.btn-view-albums {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-view-albums:hover {
    background-color: #0056b3;
}

/* Aggiungi questi stili per il menu a tendina */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #0056b3;
} 