/* Custom Styles for Stork Application */

/* Body Styling */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card Styling */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 500;
}

/* Gradient Background for Headers */
.bg-gradient {
    background: linear-gradient(135deg, rgba(25,135,84,0.9) 0%, rgba(13,110,253,0.9) 100%);
}

.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0b9cae 100%);
}

/* Form Control Styling */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.form-control-lg {
    padding: 0.5rem 1rem;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

/* Navbar Styling */
.navbar {
    border-radius: 0 0 12px 12px;
    margin-bottom: 2rem;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

/* Rounded Circle for Images */
.inline-block {
    display: inline-block;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Footer Styling */
.footer {
    margin-top: 3rem;
    border-radius: 12px 12px 0 0;
    background-color: #f8f9fa !important;
}

/* Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Radio Button Styling */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Input Group Styling */
.input-group-lg > .form-control,
.input-group-lg > .input-group-text {
    padding: 0.5rem 1rem;
}

.input-group-text {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container.py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .card-body.p-5 {
        padding: 2rem;
    }
}

/* Animation for Icons */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fa-baby,
.fa-stork {
    animation: fadeIn 0.6s ease-out;
}

/* Shadow Effects */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Text Styling */
.text-muted {
    opacity: 0.7;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Link Styling */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Focus Styles for Accessibility */
:focus {
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 2s linear infinite;
}
