/* CSS-Styles für die Research-Archiv Webseite */

/* Globale Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Tooltip-Styling */
.parameter-info {
    cursor: help;
    margin-left: 5px;
    color: #6c757d;
}

/* Card-Styling */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Tabellen-Styling für Dokumente */
.table th {
    font-weight: 600;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Badge-Styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Datei-Icons */
.bi-file-pdf {
    color: #dc3545;
}

.bi-file-word {
    color: #2b579a;
}

.bi-file-excel {
    color: #217346;
}

.bi-file-ppt {
    color: #d24726;
}

.bi-markdown {
    color: #6c757d;
}

.bi-file-text {
    color: #6c757d;
}

.bi-file-code {
    color: #fd7e14;
}

.bi-file-earmark {
    color: #6c757d;
}

.bi-folder {
    color: #0d6efd;
    font-size: 3rem;
}

/* Aktionsbuttons verbessert */
.action-buttons {
    white-space: nowrap;
}

.action-buttons .btn {
    margin: 0 2px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn i {
    font-size: 0.9rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .category-card .card-body {
        padding: 1rem;
    }
    
    .action-buttons {
        display: flex;
        justify-content: flex-end;
    }
    
    .action-buttons .btn {
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .form-select {
        max-width: 100% !important;
    }
    
    .action-buttons .btn {
        padding: 0.25rem 0.4rem;
    }
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card {
    animation: fadeIn 0.3s ease-in-out;
}

/* Footer immer am unteren Rand */
footer {
    margin-top: auto;
}

/* Suchfeld in der Navbar */
.navbar .form-control {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.navbar .form-control:focus {
    background-color: white;
    color: #212529;
}

/* Styling für Code-Blöcke */
pre {
    border-radius: 0.25rem;
    margin-bottom: 0;
}

code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
}

/* Footer-Links */
footer a {
    color: white !important;
    text-decoration: none !important;
}

footer a:hover {
    color: #f8f9fa !important;
    text-decoration: none !important;
}

/* Verbesserte Buttondarstellung */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out;
    z-index: 0;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn i {
    position: relative;
    z-index: 1;
}

/* Modal-Styling verbessert */
.modal-content {
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Tooltip verbessert */
.tooltip .tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Besserer Kontrast bei hover */
.action-buttons .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.action-buttons .btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.action-buttons .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Verbesserungen für die Suche */
.navbar .form-control:focus {
    background-color: rgba(255,255,255,0.15);
    color: white;
    box-shadow: none;
    border-color: rgba(255,255,255,0.3);
}

.navbar .btn-outline-light {
    background-color: transparent;
    border-color: rgba(255,255,255,0.2);
}

.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    box-shadow: none;
}

#search-clear {
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    background-color: transparent;
    border: none;
    right: 40px;
}

#search-clear:hover {
    color: white;
}

/* Verbesserungen für Action-Buttons */
.action-buttons .btn {
    margin: 0 1px; /* Verringerte Abstände zwischen Buttons */
    padding: 0.25rem 0.5rem;
}

.action-buttons .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.action-buttons .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Responsives Verhalten verbessern */
@media (max-width: 576px) {
    .action-buttons .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}