:root {
    --primary-color: #06C755;
    --primary-hover: #05a546;
    --secondary-color: #3b82f6;
    --bg-color: #F2F5F8;
    --card-bg: #ffffff;
    --text-color: #333333;
    --gray-text: #666666;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Kanit', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: var(--gray-text);
}

.container {
    width: 100%;
    max-width: 600px;
}

/* Header & Profile */
.header-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.profile-name {
    font-weight: 600;
    font-size: 16px;
}

.status-badge span {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    background: #e0e0e0;
    color: #555;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}

/* Content & Cards */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"], 
textarea, 
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Kanit', sans-serif; /* For Thai support */
    font-size: 14px;
    transition: border-color 0.3s;
}

textarea {
    font-family: 'Roboto', monospace; /* Monospace for code */
    min-height: 200px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.helper-text {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Kanit', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary-outline {
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-primary-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-magic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.btn-green {
    background: var(--primary-color);
    color: white;
}

.btn-blue {
    background: #00B900;
    color: white;
}

/* Status & Tags */
.data-status {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 10px;
}

.code-tag {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
    font-family: monospace;
    font-weight: bold;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 30px;
    padding-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}