/* Allgemeine Stile */
:root {
    --primary: #0d6efd;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card {
    border: none;
    margin-bottom: 20px;
}

.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.table {
    font-size: 0.9rem;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Select2 Customization */
.select2-container--bootstrap-5 .select2-selection {
    border-color: #dee2e6;
    border-radius: 4px;
    height: 38px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 36px;
}

/* Badge Styles */
.badge-buy {
    background-color: #198754;
    color: white;
}

.badge-sell {
    background-color: #dc3545;
    color: white;
}

/* Button Styles */
.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
}

.btn-edit {
    color: #0d6efd;
}

.btn-edit:hover {
    color: #0b5ed7;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    color: #bb2d3b;
}

.btn-view {
    color: #0dcaf0;
}

.btn-view:hover {
    color: #0da5c8;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#tradeForm {
    max-height: 90vh;
    overflow-y: auto;
}

/* Sidebar */
@media (max-width: 991px) {
    .col-lg-3 {
        margin-bottom: 20px;
    }
}

/* Tabelle */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

#tradesTable {
    min-width: 100%;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Pagination */
.pagination {
    margin-top: 10px;
}

.page-link {
    color: #0d6efd;
}

.page-link:hover {
    color: #0b5ed7;
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 400px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Detail Modal */
.detail-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    color: #333;
    margin-top: 4px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-buy {
    background-color: #d4edda;
    color: #155724;
}

.status-sell {
    background-color: #f8d7da;
    color: #721c24;
}

/* Tooltip */
.tooltip-inner {
    background-color: #333;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .table {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .alert {
        max-width: 90vw;
        right: 5vw;
    }
    
    .select2-container--bootstrap-5 .select2-selection {
        height: auto;
    }
}

/* Print Styles */
@media print {
    .navbar, .card-header, .btn, .form-control, .form-select {
        display: none !important;
    }
    
    .table {
        font-size: 1rem;
    }
}
