/*
==================================================
File: assets/css/acp-style.css (Updated v2.1)
==================================================
*/

:root {
    --acp-primary: #764ba2;
    --acp-secondary: #667eea;
    --acp-text: #2d3436;
    --acp-glass: rgba(255, 255, 255, 0.95);
    --fire-color: #ff6b6b;
    --earth-color: #51cf66;
    --air-color: #fcc419;
    --water-color: #339af0;
}

.acp-container {
    max-width: 1100px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.acp-header h1 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #e0aaff;
    text-shadow: 0 2px 10px rgba(224, 170, 255, 0.3);
}

/* Form Styles */
.acp-input-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.acp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.acp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #b8c1ec;
}

.acp-form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: #fff !important; /* Force white background for inputs */
    color: #333 !important;
    font-size: 15px;
}

.acp-btn-primary {
    background: linear-gradient(45deg, #ff758c 0%, #ff7eb3 100%);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
    color: #fff;
    font-size: 16px;
}

.acp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.6);
}

/* Chart Visual Area */
#acp-chart-visual {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    /* background: radial-gradient(circle, #fff 40%, #f0f0f0 100%); */
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(224, 170, 255, 0.1);
}

#acp-chart-visual svg {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    width: 100%;
    height: auto;
}

/* Tabs */
.acp-result-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 15px 15px 0 0;
    flex-wrap: wrap;
}

.acp-tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ccc;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 14px;
}

.acp-tab-btn:hover, .acp-tab-btn.active {
    background: #ff7eb3;
    color: #fff;
    border-color: #ff7eb3;
    box-shadow: 0 4px 15px rgba(255, 126, 179, 0.4);
}

#acp-tab-content {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 0 0 15px 15px;
    min-height: 400px;
}

/* Data Tables */
.acp-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 15px;
}

.acp-data-table th {
    background: #f1f3f5;
    padding: 15px;
    text-align: left;
    color: #764ba2;
    font-weight: 700;
    border-bottom: 2px solid #e9ecef;
}

.acp-data-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f5;
}

.acp-data-table tr:last-child td { border-bottom: none; }
.acp-data-table tr:hover { background-color: #f8f9fa; }

/* Interpretation Cards */
.acp-planet-info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.acp-planet-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.acp-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.acp-planet-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #764ba2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.acp-card-title h3 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.acp-card-meta {
    font-size: 13px;
    color: #636e72;
    margin-top: 3px;
}

.acp-card-body {
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Spinner */
.acp-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Geo Results */
.acp-geo-item { color: #333; }
/* Tối ưu Social Proof chuyên nghiệp */
.acp-social-proof-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0 auto 25px;
    font-size: 15px;
    color: #e0aaff;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(224, 170, 255, 0.2);
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.acp-sp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.acp-sp-item strong {
    color: #fff;
    font-size: 16px;
}

.acp-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(224, 170, 255, 0.5));
}

/* Style cho Biểu đồ Xích Vĩ (Hình 5) */
.acp-declination-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}
.acp-declination-axis {
    border-right: 1px solid #eee;
}
.acp-dec-glyph:hover {
    transform: scale(1.3);
    transition: transform 0.2s;
    z-index: 10;
}
.acp-declination-zero-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px solid #333;
}
.acp-declination-item {
    position: absolute;
    width: 2px;
    background: rgba(118, 75, 162, 0.2);
    height: 100%;
}
.acp-dec-glyph {
    position: absolute;
    transform: translateX(-50%);
    font-size: 18px;
    cursor: pointer;
}
.acp-dec-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 10px;
    white-space: nowrap;
    color: #666;
}

/* Tối ưu bảng tọa độ giống hình 4 */
.acp-planet-table-v2 img { width: 20px; vertical-align: middle; }
.acp-status-r { color: #e74c3c; font-weight: bold; margin-left: 5px; } /* Ký hiệu nghịch hành (R) */

.acp-report-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.card-num {
    background: #f4f1fa;
    color: #764ba2;
    font-weight: bold;
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.acp-cat-title {
    color: #e0aaff;
    font-size: 22px;
    margin: 40px 0 20px;
    border-left: 5px solid #ff7eb3;
    padding-left: 15px;
}
.acp-score-badge {
    text-align: center;
    border: 3px solid #667eea;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #667eea;
}
.acp-score-badge span { font-size: 9px; text-transform: uppercase; }
.acp-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}
.bal-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
}
.acp-global-unlock-cta {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    margin-top: 40px;
}

.acp-aspect-grid {
    margin: 0 auto !important;
}
.acp-aspect-grid td {
    width: 25px !important;
    height: 25px !important;
    padding: 0 !important;
    font-size: 12px;
}
.acp-summary-grid h4 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Style khối miễn trừ trách nhiệm */
.acp-disclaimer {
    margin-top: 25px;
    padding: 18px;
    background: #fdfdfd;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4b5563;
    text-align: justify;
}
.acp-disclaimer strong {
    color: #1f2937;
    font-weight: 700;
}