* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.calculator-container {
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
}

.calculator-card {
    background: #f8f8f8;
    border: 2px solid #E20404;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculator-header {
    text-align: center;
    margin-bottom: 32px;
}

.calculator-header h1 {
    color: #E20404;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.calculator-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.slider-section {
    margin-bottom: 24px;
}

.slider-container {
    margin-bottom: 24px;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.current-value {
    background: #E20404;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.max-value {
    background: #999;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.slider-wrapper {
    position: relative;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 12px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #E20404;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #E20404;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 11px;
    margin-top: 4px;
}

.result-section {
    background: #E20404;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.result-label {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    opacity: 0.95;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Responsive design */
@media (max-width: 480px) {
    .calculator-card {
        padding: 20px;
        margin: 10px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .header p {
        font-size: 13px;
    }
    
    .result-value {
        font-size: 28px;
    }
    
    .slider-scale {
        font-size: 10px;
    }
    
    .current-value, .max-value {
        font-size: 13px;
        padding: 6px 12px;
        min-width: 70px;
    }
}

/* Slider track styling */
input[type="range"] {
    background: linear-gradient(to right, #E20404 0%, #ddd 0%);
}

/* Smooth transitions */
.current-value, .result-value {
    transition: all 0.2s ease-out;
}

.calculator-card {
    transition: box-shadow 0.3s ease;
}

.calculator-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* Comments container */
.comments-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header */
.comments-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.comments-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.comment-count {
    color: #666;
    font-size: 14px;
}

/* Add comment section */
.add-comment-section {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.comment-input-wrapper {
    flex: 1;
}

#comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
}

#comment-input:focus {
    outline: none;
    border-color: #d73527;
}

.submit-comment-btn {
    background: #d73527;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-comment-btn:hover {
    background: #c12e21;
}

/* Comments list */
.comments-list {
    padding: 0;
}

.comment-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.comment-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Comment details (transaction info) */
.comment-details {

    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-icon {
    font-size: 16px;
}

.detail-label {
    font-size: 13px;
    font-weight: 500;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.detail-value.positive {
    color: #4CAF50;
    font-weight: 600;
}

.detail-value.negative {
    color: #f44336;
    font-weight: 600;
}

/* Bank statement */
.bank-statement {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.statement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bank-code {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.statement-label {
    font-size: 12px;
    color: #666;
}

.balance-amount {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.statement-link {
    color: #007bff;
    font-size: 13px;
    margin-bottom: 16px;
    cursor: pointer;
}

.transaction-icons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.icon-item span {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.recent-transactions {
    margin-top: 12px;
}

.transaction-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.transaction-desc {
    font-size: 13px;
    color: #333;
}

.transaction-amount {
    font-size: 13px;
    font-weight: 600;
}

/* Family photo */
.family-photo {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.family-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bank cards */
.bank-cards {
    margin-top: 12px;
}

.bank-card {
    background: linear-gradient(135deg, #d73527, #b71c1c);
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.bank-card.red {
    background: linear-gradient(135deg, #d73527, #b71c1c);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.bank-logo {
    font-size: 12px;
    font-weight: 600;
}

.card-amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-label {
    font-size: 12px;
    opacity: 0.9;
}

.transaction-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.transaction-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.transaction-row:last-child {
    border-bottom: none;
}

.bank-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
}

.transaction-info .transaction-desc {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.transaction-sub {
    font-size: 12px;
    color: #666;
}

.transaction-row .transaction-amount {
    font-size: 14px;
    font-weight: 600;
}

/* Load more section */
.load-more-section {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.load-more-btn {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.load-more-btn:hover {
    background: #e0e0e0;
}

/* Responsive design */
@media (max-width: 768px) {
    .comments-container {
        margin: 0;
        border-radius: 0;
    }
    
    .comment-item {
        padding: 16px;
    }
    
    .add-comment-section {
        padding: 16px;
    }
    
    .comments-header {
        padding: 16px;
    }
    
    .user-avatar {
        width: 45px;
        height: 45px;
    }
    
    .balance-amount {
        font-size: 20px;
    }
    
    .card-amount {
        font-size: 24px;
    }
}

/* Animations */
.comment-item {
    transition: background-color 0.2s;
}

.comment-item:hover {
    background-color: #fafafa;
}

.load-more-btn, .submit-comment-btn {
    transition: all 0.2s ease;
}

.load-more-btn:active, .submit-comment-btn:active {
    transform: translateY(1px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}