:root {
    --bg-color: #1a1a1a;
    --card-bg: #262626;
    --text-primary: #d1d1d1;
    --text-secondary: #a3a3a3;
    --text-muted: #777;
    --input-bg: #333;
    --btn-hover: #444;
}

body {
    background-color: #111;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: 12px;
}

.form-container {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-input, .form-textarea {
    width: 100%;
    background: var(--input-bg);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    background: #3d3d3d;
}

.submit-btn {
    width: 100%;
    background-color: #5599ff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
} 

.submit-btn:hover {
    background-color: #4488ee;
}

.back-btn {
    display: block;
    text-align: center;
    background-color: #444;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: bold;
    transition: 0.2s;
}

.back-btn:hover {
    background-color: #555;
}

.total-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.comment {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 15px;
}

.username-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.username {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-primary);
}

.user-handle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.post-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.amir-avatar {
    background-color: #f87d2f;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #e6e6e6;
    white-space: pre-wrap;
    word-wrap: break-word;  
    overflow-wrap: break-word;
}

.error-box {
    border-radius: 40px;
    padding: 10px 18px;
    color: #ffb0b0;
    background: rgba(200, 40, 40, 0.15);
    backdrop-filter: blur(4px);
    font-size: 14px;
    border: 1px solid rgba(255, 80, 80, 0.4);
    box-shadow: 0 0 12px rgba(255, 50, 50, 0.2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-box svg {
    width: 22px;
    height: 22px;
    fill: #ff7b7b;
    flex-shrink: 0;
}

.succ-box {
    border-radius: 40px;
    padding: 10px 18px;
    color: #ffb0b0;
    background: rgba(85, 200, 40, 0.15);
    backdrop-filter: blur(4px);
    font-size: 14px;
    border: 1px solid rgba(95, 255, 80, 0.4);
    box-shadow: 0 0 12px rgba(67, 255, 50, 0.2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.succ-box svg {
    width: 22px;
    height: 22px;
    fill: #7bff7b;
    flex-shrink: 0;
}