* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.5;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.address-input {
    padding: 10px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    font-size: 14px;
    width: 350px;
    font-family: 'Courier New', monospace;
    background-color: #1a1a1a;
    color: #ffffff;
}

.address-input::placeholder {
    color: #ffffff;
}

button {
    padding: 10px 20px;
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

button:hover {
    background-color: #3a3a3a;
    border-color: #555555;
}

button:active {
    background-color: #1a1a1a;
}

button:disabled {
    background-color: #404040;
    color: #888888;
    cursor: not-allowed;
}

.status {
    font-size: 13px;
    color: #ffffff;
    margin-top: 20px;
    padding: 12px;
    background-color: #1a1a1a;
    border-radius: 6px;
    border-left: 3px solid #3a3a3a;
}

.status.loading {
    border-left-color: #ffffff;
    color: #ffffff;
}

.status.error {
    border-left-color: #ff6b6b;
    color: #ff8787;
    background-color: #2a1515;
}

.status.success {
    border-left-color: #51cf66;
    color: #69db7c;
    background-color: #1a2e1a;
}

.loader {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #3a3a3a;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.positions-section {
    margin-bottom: 30px;
}

.date-group {
    margin-bottom: 25px;
}

.date-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

.date-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.count-badge {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #3a3a3a;
}

.position-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.position-card:hover {
    background-color: #232323;
    border-color: #3a3a3a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.position-info {
    flex: 1;
}

.position-title {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.position-details {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #ffffff;
}

.position-detail-item {
    display: flex;
    gap: 4px;
    color: #ffffff;
}

.position-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.btn-link {
    padding: 8px 16px;
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-link:hover {
    background-color: #333333;
    border-color: #555555;
}

.btn-link svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.empty-state p {
    font-size: 14px;
}

.filter-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px;
    background-color: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    font-size: 13px;
    color: #ffffff;
}

.filter-info-item {
    display: flex;
    gap: 6px;
}

.filter-info-label {
    color: #ffffff;
}

.filter-info-value {
    color: #ffffff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

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

    .address-input {
        width: 100%;
    }

    .position-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .position-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }

    .position-details {
        flex-wrap: wrap;
    }

    .position-detail-item {
        width: calc(50% - 10px);
    }

    .position-detail-item:first-child {
        width: 100%;
    }

    .filter-info {
        flex-direction: column;
        gap: 8px;
    }

    .header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .position-title {
        font-size: 14px;
    }

    .position-details {
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
    }

    .position-detail-item {
        width: calc(50% - 6px);
        font-size: 12px;
    }

    .position-detail-item:first-child {
        width: 100%;
    }

    button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}