body {
    background: #f4f6fa;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.container, .login-container, .search-container, .photo-detail {
    max-width: 600px;
    margin: 40px auto 20px auto;
    padding: 30px 30px 20px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
h1, h2 {
    color: #2c3e50;
}
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
input[type="text"], input[type="password"], textarea, input[type="file"] {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}
button {
    padding: 10px 22px;
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background: #005fa3;
}
a {
    color: #0078d7;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.success {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.error {
    color: #c62828;
    background: #ffebee;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.photo-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.photo-item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}
.photo-item img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
    background: #e9ecef;
}
.no-results {
    text-align: center;
    color: #888;
    margin-top: 30px;
    font-size: 1.1rem;
}
nav {
    background: #0078d7;
    padding: 10px 0;
    margin-bottom: 30px;
}
nav .nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav a {
    color: #fff;
    margin: 0 12px;
    font-weight: 500;
}
nav a:hover {
    text-decoration: underline;
}
.navigation-buttons {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 5px;
}

.btn:hover {
    background-color: #0056b3;
}

.result-counter {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.btn-delete {
    padding: 6px 12px;
    font-size: 0.9rem;
    background-color: #c62828;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #8e0000;
}