/* 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 #ccc;
    background: #e9e9e9;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 800px;
    min-height: 400px;
    overflow: hidden;
    margin-top: 15px;
    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;
}

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

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

.hkpt-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.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; }
