:root {
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --primary: #007bff;
    --primary-hover: #0056b3;
    --secondary: #6c757d;
    --text-main: #333333;
    --border: #e0e4e8;
    --success: #28a745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

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

.center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.text-center {
    text-align: center;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.back-btn {
    text-decoration: none;
    color: var(--secondary);
    font-weight: bold;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}

input[type="text"], textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    background: #fdfdfd;
}

textarea {
    resize: vertical;
}

.toolbar {
    text-align: left;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #e9ecef;
    color: var(--text-main);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 14px;
    width: auto;
}

.btn-copy {
    background: #eef2f5;
    color: var(--primary);
    margin-top: 10px;
}

.btn-copy.success {
    background: var(--success);
    color: white;
}

.divider {
    text-align: center;
    margin: 30px 0 20px;
    border-bottom: 1px solid var(--border);
    line-height: 0.1em;
}

.divider span {
    background: var(--bg-color);
    padding: 0 10px;
    color: var(--secondary);
    font-size: 14px;
}

.empty {
    text-align: center;
    color: var(--secondary);
    padding: 20px 0;
}

.msg-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.msg-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 10px;
    
    /* Scrollbar untuk teks unlimited */
    max-height: 350px; 
    overflow-y: auto;  
    padding-right: 5px; 
}

/* Custom Scrollbar */
.msg-text::-webkit-scrollbar {
    width: 6px;
}
.msg-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.msg-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
