* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

    .nav-link:hover {
        background: #1d4ed8;
    }

/* Form Styles */
.form-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

    .submit-btn:hover {
        background: #1d4ed8;
    }

/* Dashboard Styles */
.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /*gap: min(4vw, 4rem);*/
    margin-top: 2rem;
    padding: 2rem;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.animal-card {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.2s;
}

    .animal-card:hover {
        transform: translateY(-5px);
    }

.image-circle {
    width: min(300px, 25vw);
    height: min(300px, 25vw);
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

    .image-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.count {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
}

/* Detections List Styles */
.detections-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detections-list {
    display: grid;
    gap: 1rem;
}

.detection-card {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.detection-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

    .detection-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

.detection-image-preview {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

    .detection-image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid #eee;
    }

.detection-info {
    flex-grow: 1;
}

.detection-actions {
    display: flex;
    gap: 0.5rem;
}

/* Detection Display Page */
.detection-hero {
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

/* Slideshow Page */
.slideshow-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.slideshow-container {
    position: relative;
    height: 70vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.slideshow {
    height: 100%;
}

.slide {
    position: relative;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
}

.slideshow-controls {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}
