/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dashboard Farbschema */
    --primary-gradient: linear-gradient(45deg, #00b2c8, #7877c6);
    --dark-bg: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --card-bg: rgba(34, 34, 34, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-color: #00b2c8;
    --secondary-color: #7877c6;
    --text-light: #888;
    --text-white: #fff;
    --navbar-bg: rgba(34, 34, 34, 0.95);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 178, 200, 0.2);
    color: var(--primary-color);
}

/* Haupt-Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #7f8c8d;
    text-align: left;
}

/* About Content */
.about-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.about-content code {
    background-color: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

/* Footer */
.footer {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

.footer a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.footer-nav a:hover {
    background: rgba(0, 178, 200, 0.1);
    transform: translateY(-2px);
}

/* Utility Classes */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(0, 178, 200, 0.2);
    border-color: rgba(0, 178, 200, 0.4);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(45deg, #00b2c8, #7877c6);
    border-color: #00b2c8;
    box-shadow: 0 2px 10px rgba(0, 178, 200, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
    
    .language-switcher {
        gap: 0.3rem;
    }
    
    .lang-btn {
        min-width: 40px;
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
}

/* ========================================
   ORDER MANAGEMENT TABS (NEU)
   ======================================== */

/* Tabs Container */
.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem;
    border-radius: 8px;
}

.tabs .tab {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tabs .tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.tabs .tab.active {
    background: linear-gradient(135deg, #00b2c8, #7877c6);
    color: white;
}

/* Tab Badge */
.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
}

.tabs .tab.active .badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Badges */
.badge-pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.badge-partially_filled {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.badge-open {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.badge-open_small {
    background: rgba(139, 195, 74, 0.2);
    color: #8bc34a;
}

.badge-market {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.badge-limit {
    background: rgba(120, 119, 198, 0.2);
    color: #7877c6;
}

.badge-buy {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.badge-sell {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Action Buttons */
.btn-cancel {
    padding: 0.4rem 1rem;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    color: #f44336;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: translateY(-1px);
}

.btn-sell {
    padding: 0.4rem 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    color: #4caf50;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sell:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-controls button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.pagination-controls button.active {
    background: linear-gradient(135deg, #00b2c8, #7877c6);
    color: white;
    border-color: transparent;
}

/* Positive/Negative Colors */
.positive {
    color: #4caf50 !important;
}

.negative {
    color: #f44336 !important;
}

/* Bottom Panel spezifische Styles */
.bottom-panel {
    margin-top: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.bottom-panel .card {
    background: transparent;
    border: none;
    border-radius: 0;
}

.bottom-panel .card-header {
    border-bottom: 1px solid var(--card-border);
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
        gap: 1rem;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }

    .tabs .tab {
        width: 100%;
        justify-content: center;
    }
}