﻿/* Reset some basic elements for consistency */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

/* Header Styling */
.modern-header {
    text-align: center;
    margin: 20px 0;
    margin-top: -1px;
    font-size: 2.1em;
    color: #2c3e50;
}

/* Main Container with Sidebar and Content */
.container {
    margin-top: -30px !important;
    display: flex;
    margin: 0 auto;
    padding: 10px;
    gap: 10px;
}

#coinListbox option {
    font-weight: bold;
    font-size: large;
    width: 270px;
}

/* Sidebar Styling */
.sidebar {
    flex: 0 0 250px;
    background-color: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px; /* Distance from the top when scrolling */
    height: fit-content;
}

    .sidebar h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
        color: #2c3e50;
        text-align: center;
    }

.filter-item {
    display: flex;
    align-items: center;
    background-color: #f1f2f6;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

    .filter-item .filter-label {
        font-weight: 600;
        color: #2c3e50;
        margin-right: 5px;
        white-space: nowrap;
        flex: 0 0 80px; /* Fixed width for labels */
    }

    .filter-item .filter-value {
        color: #2d3436;
        font-size: 0.95em;
        word-break: break-all;
    }

    /* Optional Icons */
    .filter-item .filter-icon {
        margin-right: 5px;
        font-size: 1.1em;
        color: #0984e3;
    }

/* Filter Form Styling */
#filterForm {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    #filterForm div {
        flex: 1 1 200px;
        display: flex;
        flex-direction: column;
    }

    #filterForm label {
        margin-bottom: 5px;
        font-weight: 500;
        color: #2c3e50;
    }

    #filterForm input[type="text"],
    #filterForm input[type="number"],
    #filterForm select,
    #filterForm input[type="datetime-local"] {
        padding: 10px;
        border: 1px solid #ced6e0;
        border-radius: 4px;
        font-size: 1em;
        transition: border-color 0.3s ease;
    }

        #filterForm input[type="text"]:focus,
        #filterForm input[type="number"]:focus,
        #filterForm select:focus,
        #filterForm input[type="datetime-local"]:focus {
            border-color: #0984e3;
            outline: none;
            box-shadow: 0 0 5px rgba(9, 132, 227, 0.5);
        }

/* Multi-select Combobox Styling */
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #ced6e0;
    border-radius: 4px;
    padding: 8px;
    min-height: 42px;
    font-size: 1em;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #0984e3;
    box-shadow: 0 0 5px rgba(9, 132, 227, 0.5);
}

/* Context Menu Styling */
.contextMenu {
    position: absolute;
    display: none;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.context-menu-item {
    padding: 10px;
    cursor: pointer;
}

    .context-menu-item:hover {
        background: #f0f0f0;
    }


/* Flash animation for current price input */
@keyframes flash {
    0% {
        background-color: #ffeaa7;
    }

    100% {
        background-color: #ffffff;
    }
}

.flash {
    animation: flash 1s ease-in-out;
}

/* Enhanced Table Styling */
table#liquidations {
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #ced6e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    table#liquidations th, table#liquidations td {
        padding: 12px 15px;
        text-align: center;
        font-size: 1.05em;
        border-bottom: 1px solid #ced6e0;
    }

    table#liquidations th {
        background-color: #0984e3;
        color: #ffffff;
        cursor: pointer;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    table#liquidations tr:nth-child(even) {
        background-color: #f1f2f6;
    }

    table#liquidations tr:hover {
        background-color: #dfe6e9;
    }

/* Buy and Sell Row Styling */
.buy-row {
    background-color: #66FF66 !important; /* Light Blue */
}

.sell-row {
    background-color: #FF9999 !important; /* Light Red */
}

.sell-cell {
    background-color: red;
    color: white;
}

.buy-cell {
    background-color: green;
    color: white;
}

.long-row {
    background-color: turquoise !important; /* Light Blue */
}

.short-row {
    background-color: orange !important; /* Light Red */
}

.very-high-sell {
    background-color: darkred !important;
    color: white;
}

.very-high-buy {
    background-color: darkgreen !important;
    color: white;
}

.strike-through {
    text-decoration: line-through;
    background-color: #f0f0f0; /* Açık gri */
    opacity: 0.8;
}

/* Styling for the filter buttons */
.modern-button {
    padding: 12px 24px;
    background-color: #0984e3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em; /* Increased font size */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .modern-button:hover {
        background-color: #74b9ff;
        transform: translateY(-2px);
    }

    .modern-button:active {
        transform: translateY(0);
    }

/* TradingView Widget Container Styling */
#tradingview-widget-container {
    width: 100%;
    height: 400px;
    border: 1px solid #ced6e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure TradingView widget fills its container */
#tradingview_9768f {
    width: 100% !important;
    height: 100% !important;
}

/* Current Price Display Styling */
#currentPriceContainer {
    color: #0984e3;
    font-size: 1.5em;
    margin: 5px 0;
    text-align: center;
}

    #currentPriceContainer label {
        margin-right: 10px;
        font-weight: 500;
        color: #2c3e50;
    }

#currentPrice {
    font-size: 1.3em;
    width: 200px;
    padding: 5px;
    border: 1px solid #ced6e0;
    border-radius: 2px;
    background-color: #f1f2f6;
    color: #2d3436;
    text-align: center;
}

/* Time Filter Section Styling */
#timeFilter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    #timeFilter input[type="datetime-local"] {
        padding: 10px;
        border: 1px solid #ced6e0;
        border-radius: 4px;
        font-size: 1em;
        width: 220px;
        transition: border-color 0.3s ease;
    }

        #timeFilter input[type="datetime-local"]:focus {
            border-color: #0984e3;
            outline: none;
            box-shadow: 0 0 5px rgba(9, 132, 227, 0.5);
        }

/* Sound Controls Styling */
#soundControls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#volumeSlider {
    width: 100%;
}

/* Control Buttons Section Styling */
#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Message Div Styling */
#message {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.3em;
    color: #2d3436;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: auto;
    }

    table#liquidations {
        width: 100%;
    }

    #tradingview-widget-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .modern-header {
        font-size: 2em;
    }

    .filter-item {
        padding: 6px 8px;
    }

        .filter-item .filter-label {
            font-size: 0.9em;
        }

        .filter-item .filter-value {
            font-size: 0.85em;
        }

    #timeFilter {
        flex-direction: column;
    }

        #timeFilter input[type="datetime-local"] {
            width: 100%;
        }

    #currentPrice {
        width: 100%;
    }

    #volumeSlider {
        width: 100px;
    }
}

/* filterForm için stil düzenlemeleri */
#filterForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    #filterForm label {
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 5px;
        display: block;
    }

    #filterForm input[type="text"],
    #filterForm select {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }

    #filterForm .checkbox-group {
        display: flex;
        gap: 15px;
    }

        #filterForm .checkbox-group label {
            display: flex;
            align-items: center;
            font-size: 14px;
        }

    #filterForm .button-group {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    #filterForm button {
        padding: 10px 15px;
        font-size: 14px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    #filterForm .btn-primary {
        background-color: #007bff;
        color: white;
    }

    #filterForm .btn-secondary {
        background-color: #f0f0f0;
        color: #333;
    }

    #filterForm button:hover {
        opacity: 0.9;
    }

.pagination-controls {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

    .pagination-controls button {
        margin: 0 5px;
        padding: 5px 10px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        cursor: pointer;
    }

        .pagination-controls button.active {
            background-color: #007bff;
            color: white;
            font-weight: bold;
        }

        .pagination-controls button:disabled {
            background-color: #e9ecef;
            cursor: not-allowed;
        }


/* Giriş ekranı için modern tasarım */
.login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #d3d3d3, #9e9e9e);
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
}

.login-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* koyu gölge */
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.login-group {
    width: 100%;
    margin-bottom: 20px;
}

    .login-group input {
        width: 100%;
        padding: 12px;
        border: none;
        border-bottom: 2px solid #ccc;
        outline: none;
        font-size: 16px;
        transition: border-color 0.3s;
        background-color: transparent;
    }

        .login-group input:focus {
            border-color: #6a11cb;
        }

.login-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

    .login-button:hover {
        background: linear-gradient(to right, #5b0fd0, #1e6bf1);
    }

.login-error {
    color: red;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-align: center;
}

.login-logo {
    width: 120px;
    margin-bottom: 20px;
    border-radius: 12px;
}
