/* comtura Corporate Design - TKD Style */

:root {
    --comtura-primary: #0768AF;
    --comtura-secondary: #6c757d;
    --comtura-success: #198754;
    --comtura-warning: #ffc107;
    --comtura-danger: #dc3545;
    --comtura-info: #0dcaf0;
    --comtura-light: #f8f9fa;
    --comtura-dark: #212529;
}

/* Bootstrap Theme Override */
.btn-primary,
.bg-primary {
    background-color: var(--comtura-primary) !important;
    border-color: var(--comtura-primary) !important;
}

.text-primary {
    color: var(--comtura-primary) !important;
}

/* Navbar Styling */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Dashboard Cards */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

.card-body ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.card-body ul li:last-child {
    border-bottom: none;
}

.card-body a {
    color: #495057;
    transition: color 0.2s ease;
}

.card-body a:hover {
    color: var(--comtura-primary);
}

/* Table Styling (wie im tkd-System) */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th {
    background-color: var(--comtura-primary);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.table td {
    vertical-align: middle;
    border-color: #e9ecef;
}

.table tbody tr:hover {
    background-color: rgba(7, 104, 175, 0.05);
}

/* Form Styling */
.form-control:focus {
    border-color: var(--comtura-primary);
    box-shadow: 0 0 0 0.2rem rgba(7, 104, 175, 0.25);
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Loading States */
.card.loading {
    opacity: 0.6;
}

/* Custom Buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.125rem;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Icons */
.card-header i {
    opacity: 0.9;
}

/* Dashboard specific */
body.bg-light {
    background-color: #f4f6f9 !important;
}

.container-fluid {
    max-width: 1400px;
}

/* Navbar Dropdown Hover-Effekte */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-nav .dropdown-menu {
    margin-top: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--comtura-primary);
    color: white;
    transform: translateX(5px);
}

.navbar-nav .dropdown-item i {
    color: var(--comtura-primary);
    transition: color 0.3s ease;
}

.navbar-nav .dropdown-item:hover i {
    color: white;
}

/* Dropdown Divider Styling */
.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(7, 104, 175, 0.2);
}

/* Navbar Link Hover-Effekte */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--comtura-primary) !important;
    transform: translateY(-1px);
}

/* Aktive Navigation markieren */
.navbar-nav .nav-link.active {
    color: var(--comtura-primary) !important;
    font-weight: 600;
}

/* Responsive Dropdown für Mobile */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: none; /* Hover-Effekt nur auf Desktop */
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        transform: none;
    }
}

/* Layout-spezifische Styles */
.two-column-layout .left-column,
.two-column-layout .right-column {
    min-height: 200px;
}

.three-column-layout .left-column,
.three-column-layout .center-column,
.three-column-layout .right-column {
    min-height: 200px;
}

.hero-content-layout .hero-section {
    background: linear-gradient(135deg, var(--comtura-primary) 0%, #0a5a8a 100%);
    color: white;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-layout .sidebar {
    position: sticky;
    top: 20px;
    border: 1px solid #e9ecef;
}

.sidebar-layout .sidebar h1,
.sidebar-layout .sidebar h2,
.sidebar-layout .sidebar h3 {
    color: var(--comtura-primary);
    margin-top: 0;
}

.grid-layout .grid-item {
    transition: transform 0.3s ease;
}

.grid-layout .grid-item:hover {
    transform: translateY(-2px);
}

.grid-layout .bg-primary {
    color: white;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .three-column-layout .row > div {
        margin-bottom: 2rem;
    }
    
    .sidebar-layout .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .two-column-layout .row > div:first-child {
        margin-bottom: 2rem;
    }
}
