* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: #fff;
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

nav .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

nav a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

nav span {
    color: #666;
    font-size: 14px;
}

/* Main container */
.container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Headings */
h1 {
    font-family: 'Bungee', cursive;
    text-align: center;
    color: #222;
    margin-bottom: 32px;
}

h2 {
    text-align: center;
    margin: 16px 0;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}

button[type="submit"] {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #0056b3;
}

/* Error message */
.error {
    color: #dc3545;
    background: #f8d7da;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone:hover {
    border-color: #007bff;
    background: #f8faff;
}

.drop-zone.drag-over {
    border-color: #007bff;
    background-color: #e8f0ff;
}

.drop-zone input[type="file"] {
    display: none;
}

.drop-zone p {
    margin: 0;
    color: #666;
}

.drop-zone .filename {
    margin-top: 12px;
    font-weight: 500;
    color: #333;
}

.preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 16px;
    border-radius: 8px;
}

/* Result page */
.result {
    text-align: center;
}

.result img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.result ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.result li {
    background: #e8f5e9;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 8px 0;
    color: #2e7d32;
    font-weight: 500;
}

.result .time {
    color: #666;
    font-size: 14px;
    margin-top: 16px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* History page */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-card {
    padding: 20px;
}

.history-images {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.history-images img {
    max-width: 48%;
    height: auto;
    border-radius: 8px;
}

.history-info {
    text-align: center;
    margin-top: 12px;
}

.history-info ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.history-info li {
    background: #e8f5e9;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px 0;
    color: #2e7d32;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.badge-found {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-none {
    background: #f5f5f5;
    color: #666;
}

.badge-bird {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-squirrel {
    background: #fff3e0;
    color: #e65100;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        margin: 20px auto;
    }

    .card {
        padding: 24px;
    }

    h1 {
        font-size: 24px;
    }
}


