/* ─────────────────────────────────────────────
   Golf Ball Flight Mastery — Drill Tracker CSS
   ───────────────────────────────────────────── */

.gbfm-drill-tracker {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Header */
.gbfm-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 24px 28px;
    color: white;
}

.gbfm-badge {
    display: inline-block;
    background: #f97316;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.gbfm-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.gbfm-chapter {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Monitor Toggle */
.gbfm-monitor-toggle {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gbfm-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.gbfm-toggle-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gbfm-toggle-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.3;
}

.gbfm-toggle-btn span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

.gbfm-toggle-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.gbfm-toggle-btn.active {
    background: #f97316;
    border-color: #f97316;
    color: white;
}

.gbfm-toggle-btn.active span {
    color: rgba(255,255,255,0.8);
}

/* Form */
.gbfm-form {
    padding: 24px 28px;
}

.gbfm-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gbfm-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.gbfm-field-group textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.gbfm-field-group textarea:focus {
    outline: none;
    border-color: #f97316;
    background: white;
}

/* Form Footer */
.gbfm-form-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gbfm-submit-btn {
    background: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.gbfm-submit-btn:hover {
    background: #ea6c0a;
    transform: translateY(-1px);
}

.gbfm-submit-btn:active {
    transform: translateY(0);
}

.gbfm-success-msg {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    margin: 0;
}

/* History */
.gbfm-history {
    border-top: 1px solid #e2e8f0;
    padding: 24px 28px;
    background: #f8fafc;
}

.gbfm-history-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.gbfm-history-entry {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.gbfm-history-entry:last-child {
    margin-bottom: 0;
}

.gbfm-history-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gbfm-history-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.gbfm-history-monitor {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.gbfm-history-item {
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
    line-height: 1.5;
}

.gbfm-history-item strong {
    color: #1e293b;
}

/* Notice */
.gbfm-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: #92400e;
    margin: 16px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .gbfm-header,
    .gbfm-form,
    .gbfm-history {
        padding: 18px 18px;
    }
    .gbfm-monitor-toggle {
        padding: 14px 18px;
        flex-direction: column;
        align-items: flex-start;
    }
}
