/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-height: 480px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-banner .container {
    position: relative;
    z-index: 2;
}
.hero-banner h1, .hero-banner p {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
    .hero-banner {
        min-height: 180px;
        max-height: 220px;
    }
    .hero-banner h1 {
        font-size: 2rem;
    }
}
/**
 * Seiskarinkoirat Jalostustietokanta
 * Päätyyli
 */

:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --success-color: #388e3c;
    --danger-color: #d32f2f;
    --warning-color: #f57c00;
    --info-color: #0097a7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

/* Tables */
table {
    margin-top: 1rem;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
}

.alert-info {
    background-color: #e3f2fd;
    color: #01579b;
}

.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.alert-warning {
    background-color: #fff3e0;
    color: #e65100;
}

.alert-danger {
    background-color: #ffebee;
    color: #b71c1c;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 2rem 0;
    margin-top: 4rem;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status colors */
.status-active {
    color: var(--success-color);
    font-weight: 600;
}

.status-inactive {
    color: var(--danger-color);
    font-weight: 600;
}

.status-pending {
    color: var(--warning-color);
    font-weight: 600;
}

/* Kuva-placeholder */
/* Mustavalkoinen SK-logo placeholder */
.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #222 0%, #fff 100%);
    color: #fff;
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: -2px;
    flex-direction: column;
    border-radius: 0.5rem;
    border: 2px solid #222;
}
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.placeholder-content span {
    font-size: 2.7rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 0 #222, 0 0 2px #222;
    margin-bottom: 0.2em;
}
.placeholder-content small {
    color: #222;
    font-weight: 700;
}
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    color: #999;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.card-koira {
    overflow: hidden;
}
