/* =====================================================
   PROFESSIONAL DESIGN - Gemeinsames CSS für alle Seiten
   ===================================================== */

/* Simple Professional Table */
.professional-table,
table.table,
#indicatorTable,
#resultsTable,
.data-table {
    width: 95%;
    margin: 10px auto;
    border-collapse: collapse;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.professional-table th,
table.table th,
#indicatorTable th,
#resultsTable th,
.data-table th {
    background: #1a2744 !important;
    color: #fff !important;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #2c3e50 !important;
}

.professional-table td,
table.table td,
#indicatorTable td,
#resultsTable td,
.data-table td {
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #dee2e6;
    color: #212529;
}

.professional-table tbody tr:nth-child(even),
table.table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.professional-table tbody tr:hover,
table.table tbody tr:hover,
.data-table tbody tr:hover {
    background: #e9ecef;
}

/* Signal Cells - Full cell color */
td.signal-long,
.signal-long {
    background: #28a745 !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 11px !important;
}

td.signal-short,
.signal-short {
    background: #dc3545 !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 11px !important;
}

td.signal-neutral,
.signal-neutral {
    background: #6c757d !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 11px !important;
}

/* Signal Badges */
.bg-green {
    background: #28a745 !important;
    color: #fff !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    display: inline-block !important;
}

.bg-red {
    background: #dc3545 !important;
    color: #fff !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    display: inline-block !important;
}

.bg-yellow {
    background: #ffc107 !important;
    color: #212529 !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    display: inline-block !important;
}

.bg-gray {
    background: #6c757d !important;
    color: #fff !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    display: inline-block !important;
}

/* Timeframe Controls */
.timeframe-container,
.btn-group.timeframe-controls,
.timeframe-buttons {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 10px;
    gap: 8px;
}

.timeframe-btn,
.btn-timeframe,
button[data-timeframe] {
    padding: 6px 14px !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #fff !important;
}

.timeframe-btn[data-timeframe="15m"],
button[data-timeframe="15m"] {
    background: #28a745 !important;
}

.timeframe-btn[data-timeframe="1h"],
button[data-timeframe="1h"] {
    background: #007bff !important;
}

.timeframe-btn[data-timeframe="4h"],
button[data-timeframe="4h"] {
    background: #fd7e14 !important;
}

.timeframe-btn[data-timeframe="1d"],
button[data-timeframe="1d"] {
    background: #dc3545 !important;
}

.timeframe-btn.active,
button[data-timeframe].active {
    opacity: 0.7;
}

/* Search Box */
.search-container,
.search-box {
    margin-left: auto;
}

.search-input,
input[type="search"],
#symbolSearch,
#searchInput {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 13px;
    width: 200px;
}

.search-input:focus,
input[type="search"]:focus {
    outline: none;
    border-color: #007bff;
}

/* Pagination */
.pagination-container,
#paginationControls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 10px auto;
    width: fit-content;
}

.pagination-container button,
#paginationControls button,
.page-btn {
    border: 1px solid #ced4da;
    background: #fff;
    color: #495057;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.pagination-container button:hover,
#paginationControls button:hover,
.page-btn:hover {
    background: #e9ecef;
}

.pagination-container button.active,
#paginationControls button.active,
.page-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 10px;
}

.card-header {
    background: #343a40 !important;
    color: #fff !important;
    border-bottom: 1px solid #454d55;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
}

.card-header .card-title,
.card-header h5 {
    color: #fff !important;
    margin: 0;
}

.card-body {
    padding: 12px 15px;
}

/* Filter Container */
.filter-container,
.filters-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 10px;
}

/* Buttons */
.btn-primary {
    background: #007bff !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 14px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056b3 !important;
}

.btn-secondary {
    background: #e9ecef !important;
    color: #495057 !important;
    border: 1px solid #ced4da !important;
    padding: 6px 14px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #dee2e6 !important;
}

.btn-danger {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
}

.btn-success {
    background: #28a745 !important;
    color: #fff !important;
    border: none !important;
}

/* Alerts */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px;
    font-size: 13px;
}

.alert-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    color: #004085;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Symbol Link */
.symbol-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.symbol-link:hover {
    text-decoration: underline;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .timeframe-container,
    .btn-group.timeframe-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-container {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
    
    table {
        font-size: 10px;
    }
    
    th, td {
        padding: 6px 3px;
    }
}

