/* KK Shooting Target Styles */
.shooting-target-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.shooting-target-page .site-content,
.shooting-target-page .content-area,
.shooting-target-page .main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.shooting-target-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

.shooting-target-container {
    display: flex !important;
    gap: 20px !important;
    height: 95vh !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.target-container {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 400px;
}

.target-svg {
    width: 95% !important;
    height: 95% !important;
    max-width: none !important;
    max-height: 90vh !important;
}

.shooters-panel {
    width: 450px !important;
    background-color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 350px !important;
    max-width: 450px !important;
    visibility: visible !important;
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.zoom-controls label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.zoom-slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
}

.zoom-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.zoom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#zoomValue {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.search-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-height: 44px;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    min-height: 44px;
    min-width: 44px;
}

.btn:hover {
    background-color: #e9ecef;
}

.table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 200px;
    max-height: 400px;
}

.shooters-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 16px !important;
    min-width: 300px !important;
    display: table !important;
    visibility: visible !important;
}

.shooters-table th,
.shooters-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    min-height: 44px;
}

.shooters-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 16px;
}

.shooters-table th:hover {
    background-color: #e9ecef;
}

.shooters-table tr:hover {
    background-color: #f8f9fa;
}

.sort-indicator {
    float: right;
    margin-left: 5px;
}

.checkbox-cell {
    text-align: center;
    width: 50px;
}

.checkbox-cell input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.name-cell {
    width: 35%;
}

.teiler-cell {
    width: 25%;
    text-align: right;
}

.shot-circle {
    stroke: #000;
    stroke-width: 2;
    fill-opacity: 0.8;
}

.hidden-row {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .shooting-target-wrapper {
        padding: 10px;
    }

    .shooting-target-container {
        flex-direction: column;
        height: auto;
        gap: 15px;
        min-height: 100vh;
    }

    .target-container {
        height: 50vh;
        min-height: 300px;
        order: 2;
    }

    .target-svg {
        width: 90% !important;
        height: 90% !important;
        max-width: 500px !important;
        max-height: 500px !important;
    }

    .shooters-panel {
        width: 100%;
        min-width: auto;
        order: 1;
        max-height: none;
        min-height: 40vh;
    }

    .panel-header h2 {
        font-size: 1.2em;
        margin: 0 0 10px 0;
    }

    .search-controls {
        margin-bottom: 10px;
    }

    .zoom-controls {
        margin-bottom: 10px;
        padding: 8px;
    }

    .zoom-controls label {
        font-size: 13px;
    }

    #zoomValue {
        font-size: 11px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 16px;
        margin: 2px;
    }

    .shooters-table {
        font-size: 14px;
    }

    .shooters-table th,
    .shooters-table td {
        padding: 8px 4px;
    }

    .name-cell {
        width: 30%;
        font-size: 14px;
    }

    .teiler-cell {
        width: 30%;
        font-size: 14px;
    }

    .checkbox-cell {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .shooting-target-container {
        gap: 10px;
    }

    .target-container {
        height: 45vh;
        min-height: 250px;
    }

    .shooters-panel {
        padding: 15px;
        max-height: 45vh;
    }

    .shooters-table {
        font-size: 13px;
    }

    .shooters-table th,
    .shooters-table td {
        padding: 6px 2px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .search-input {
        padding: 10px;
        font-size: 16px;
    }

    .name-cell {
        width: 28%;
        font-size: 13px;
    }

    .teiler-cell {
        width: 32%;
        font-size: 13px;
    }
}