* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#search, select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#search {
    min-width: 250px;
}

#loading, #error {
    text-align: center;
    padding: 40px;
    font-size: 18px;
}

#error {
    color: #e74c3c;
}

#dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dog-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.dog-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
}

.dog-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dog-name {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.dog-detail {
    margin: 4px 0;
    color: #555;
}

.weight-detail {
    margin: 4px 0;
    color: #555;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.dog-detail strong {
    color: #333;
}

.dog-description {
    margin-top: 8px;
    margin-bottom: 16px;
    color: #666;
    line-height: 1.5;
}

.rescue-badge {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: auto;
    align-self: flex-start;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    #dogs-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    #search, select {
        width: 100%;
    }
}
