/* huyen-khong.css */

.hkpt-wrapper {
    font-family: Arial, sans-serif;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hkpt-header {
    text-align: center;
    border-bottom: 2px solid #6a1b9a;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.hkpt-title {
    color: #6a1b9a;
    margin: 0 0 5px 0;
    font-size: 2rem;
}

.hkpt-tagline {
    color: #777;
    margin: 0;
    font-style: italic;
}

.hkpt-intro {
    background: #fdfdfd;
    border-left: 4px solid #6a1b9a;
    padding: 10px 15px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

/* FORM */
.hkpt-form-section {
    background: #fff9e6;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
}

.hkpt-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hkpt-form-col {
    flex: 1;
    min-width: 300px;
}

.hkpt-form-group-title {
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    display: flex;
    justify-content: space-between;
}

.hkpt-form-group-title h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #444;
}

.hkpt-form-group {
    margin-bottom: 15px;
}

.hkpt-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.hkpt-radio-group label {
    display: inline-block;
    font-weight: normal;
    margin-right: 15px;
}

.hkpt-note {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
}

.hkpt-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#hkpt-degree {
    width: 120px;
    display: inline-block;
}

.hkpt-btn-lap {
    display: inline-block;
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hkpt-btn-lap:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(106,27,154,0.4);
}

/* Canvas Container */
.hkpt-canvas-container {
    position: relative;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 600px;
    margin: 15px auto 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.hkpt-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Draggable wrapper for compass */
.hkpt-compass-dragger {
    position: absolute;
    z-index: 2;
    cursor: grab;
    transform-origin: center center;
    text-align: center;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hkpt-compass-dragger:active {
    cursor: grabbing;
}

#hkpt-compass-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.hkpt-controls {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    margin: 15px auto 0 auto;
}

#hkpt-controls-sliders {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hkpt-btn-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.hkpt-btn-action:active {
    transform: translateY(0);
}

.hkpt-control-item {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hkpt-control-item label {
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    color: #333 !important;
    margin-bottom: 2px;
}

.hkpt-control-item input[type="range"] {
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.hkpt-summary-box {
    background: #f0f4f8;
    border-left: 4px solid #1976d2;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Hoc huyen khong toggle sections (similar to Ky Mon) */
.hkpt-learn-section { margin-top: 40px; padding-top: 20px; border-top: 2px dashed #eee; }
.hkpt-chapter { margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; overflow: hidden; }
.hkpt-chapter-header { background: #f5f5f5; padding: 15px; cursor: pointer; display: flex; align-items: center; font-weight: bold; }
.hkpt-chapter-header:hover { background: #eaeaea; }
.hkpt-chapter-title { flex-grow: 1; margin-left: 10px; }
.hkpt-chapter-body { display: none; padding: 15px; border-top: 1px solid #ddd; }
.hkpt-lesson-item { margin-bottom: 10px; border: 1px solid #eee; border-radius: 5px; }
.hkpt-lesson-toggle { background: #fafafa; padding: 10px 15px; cursor: pointer; display: flex; align-items: center; }
.hkpt-lesson-toggle:hover { background: #f0f0f0; }
.hkpt-lesson-title { flex-grow: 1; margin-left: 10px; font-weight: 500; color: #444; }
.hkpt-lesson-body { display: none; padding: 15px; line-height: 1.6; color: #555; background: #fff; border-top: 1px dashed #eee;}
.hkpt-lesson-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hkpt-lesson-table th, .hkpt-lesson-table td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.hkpt-lesson-table th { background: #f5f5f5; }

.hkpt-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; color: #777; }
