/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    color: #334155;
    line-height: 1.6;
}

.app-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.logo-placeholder {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    background: white;
    color: #1e3a8a;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 26px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Cards */
.card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

/* Survey */
.survey-title {
    font-size: 20px;
    color: #ff5722;
    margin-bottom: 25px;
    text-align: center;
}

.question-block {
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.question {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 16px;
}

.option {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.option input {
    margin-right: 10px;
    accent-color: #ff5722;
    transform: scale(1.2);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff5722 0%, #f97316 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.btn-submit:disabled {
    background: #cbd5e0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Results */
.results-title {
    font-size: 22px;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 30px;
}

.chart-container {
    margin-bottom: 40px;
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-label {
    text-align: center;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}

/* Social Buttons */
.social-share {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-share:hover {
    opacity: 0.9;
}

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.copy { background: #475569; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Comments Section */
.comment-input, .comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.comment-textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-attach {
    background: #e2e8f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-attach:hover {
    background: #cbd5e0;
}

.comment-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 800;
    color: #1e3a8a;
}

.comment-date {
    font-size: 12px;
    color: #64748b;
}

.comment-body {
    font-size: 14px;
    margin-bottom: 12px;
    color: #334155;
    word-break: break-word;
}

.comment-img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.comment-footer {
    display: flex;
    gap: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.btn-action {
    background: none;
    border: none;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-action:hover {
    color: #1e3a8a;
}

.reply-box {
    margin-top: 15px;
    border-left: 2px solid #cbd5e0;
    padding-left: 15px;
}

.reply-item {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .header h1 { font-size: 22px; }
    .card { padding: 20px; }
    .chart-container { height: 250px; }
}
