/* Base styles for Djansible */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    background-color: #f5f5f5;
    padding-top: 0;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #fff;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 8px 16px;
    margin: 2px 8px;
    border-radius: 4px;
}

.sidebar .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Main content area */
main {
    margin-top: 56px;
    padding-top: 20px;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}

/* Bordered cards for emphasis */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger-color) !important;
}

/* Status badges */
.badge {
    font-size: 0.85em;
    padding: 0.35em 0.65em;
}

/* Tables */
.table {
    background-color: #fff;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #6c757d;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Buttons */
.btn {
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn-group-sm>.btn {
    font-size: 0.75rem;
}

/* Forms */
.form-control {
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alerts */
.alert {
    border-radius: 0.25rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Utilities */
.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-xs {
    font-size: 0.7rem;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e3e6f0;
}

/* Copy button for code blocks */
.copy-btn {
    position: relative;
    float: right;
    margin-bottom: 5px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        padding: 0;
    }

    main {
        margin-top: 56px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}


/* .base {
    background-color: rgb(235, 244, 254);
}

.rounded-xl {
    border-radius: 0.75rem !important; 
}

.rounded-xl-top {
    border-top-left-radius: 0.75rem !important; 
    border-top-right-radius: 0.75rem !important; 
}

.rounded-xl-bottom {
    border-bottom-left-radius: 0.75rem !important; 
    border-bottom-right-radius: 0.75rem !important; 
}

.rounded-xxl {
    border-radius: 1rem !important; 
}

.rounded-xxl-top {
    border-top-left-radius: 1rem !important; 
    border-top-right-radius: 1rem !important; 
}

.rounded-xxl-bottom {
    border-bottom-left-radius: 1rem !important; 
    border-bottom-right-radius: 1rem !important;
}

.border-color {
    border-color: rgb(199, 216, 245);
}

.text-sm {
    font-size: 0.875rem !important; 
}

.text-md {
    font-size: 1rem !important; 
}

.text-lg {
    font-size: 1.125rem !important; 
}

.text-xl {
    font-size: 1.25rem !important; 
}

thead:hover {
    background-color: rgba(235, 244, 254, 0.4);
}

.my-icon {
    color: rgb(255, 255, 255);
    width: 16px;
    height: 16px;
}

*/
/*
.transition-collapse {
    max-height: 1000px; /* Set a max-height large enough for your content */
/*
    opacity: 1;
    overflow: hidden;
    transition: all 0.5s ease-out;

    /* These properties ensure the <hr> margins are included in the transition */
/* You may need to adjust these values to match your <hr> default margins */
/*
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 0;
    padding-bottom: 0;
}

/* 2. This is the COLLAPSED state (when Vue adds the .collapse class) */
/*
.transition-collapse.is-collapsed {
    max-height: 0;
    opacity: 0;
    
    /* We transition these to 0 to make the collapse smooth */
/*
    margin-top: 0;
    margin-bottom: 0;
}

/* Ein kleiner Indikator-Status-Punkt */
/*
.my-status-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.my-status-dot.my-status-lg {
    height: 16px;
    width: 16px;
    margin-right: 10px;
}

.status-dot.my-status-xl {
    height: 20px;
    width: 20px;
    margin-right: 12px;
}

.my-status-ok { background-color: #28a745; } /* Bootstrap Grün */
/*
.my-status-warn { background-color: #ffc107; } /* Bootstrap Gelb */
/*
.my-status-error { background-color: #dc3545; } Bootstrap Rot */