/* Custom CSS for Insolvenz-Radar */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Skip to content link */
.visually-hidden-focusable:focus {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--info-color) !important;
}

.container-fluid{
    margin-top: 64px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%230d6efd" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    text-align: center;
    padding: 2rem;
}

.hero-image i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-color), #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* About Items */
.about-item {
    text-align: center;
    padding: 1.5rem;
}

.about-item i {
    font-size: 3rem;
}

.about-item h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #5a0fc8 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Newsletter Section */
.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}
footer{
    color: white;
}
footer a:hover {
    color: var(--info-color) !important;
}

.social-links a {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--info-color) !important;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .feature-card,
    .service-card {
        margin-bottom: 2rem;
    }
    
    .hero-image {
        padding: 1rem;
    }
    
    .hero-image i {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card,
    .service-card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd, #a3d9a4);
    color: #0f5132;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    color: #842029;
}

/* Statistics Section */
#statistics {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.chart-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highcharts Customization */
.highcharts-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

.highcharts-background {
    fill: transparent;
}

.highcharts-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
}

.highcharts-subtitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: var(--secondary-color) !important;
}

.highcharts-axis-labels {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.highcharts-legend-item {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.table-container h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    color: var(--dark-color);
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table tbody td:first-child {
    font-weight: 500;
    color: var(--dark-color);
}

.table tbody td:nth-child(2) {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.table tbody td:nth-child(3),
.table tbody td:nth-child(4) {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Updated table styling for 6 columns */
.table tbody td:nth-child(1) {
    color: var(--secondary-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.table tbody td:nth-child(2) {
    font-weight: 500;
    color: var(--dark-color);
}

.table tbody td:nth-child(3) {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.table tbody td:nth-child(4),
.table tbody td:nth-child(5),
.table tbody td:nth-child(6) {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Responsive adjustments for 6 columns */
@media (max-width: 1200px) {
    .table {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .table thead th,
    .table tbody td {
        padding: 0.4rem 0.2rem;
        font-size: 0.8rem;
    }
    
    .table tbody td:nth-child(3) {
        font-size: 0.75rem;
    }
}

/* Table responsive adjustments */
@media (max-width: 768px) {
    .table-container {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    .table thead th {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .table-container {
        padding: 0.75rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.4rem 0.2rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
    }
    
    .table tbody tr:hover {
        transform: none;
    }
}

/* Chart responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        padding: 1rem;
    }
    
    #insolvencyChart {
        height: 400px !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    #insolvencyChart {
        height: 350px !important;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

#street{
        height: 0.5px;
        border: none;
        float: left;
        background: transparent;    
}