:root {
    /* Vibrant Pastel Palette */
    --primary: #FF85A2;
    /* Sweet Pink */
    --primary-hover: #FF5E84;
    --secondary: #7FE7CC;
    /* Minty Fresh */
    --accent: #F9F871;
    /* Lemon Sherbet */
    --dark: #4A4046;
    /* Soft Dark */
    --light: #FFF9FA;
    /* Snow Pink */
    --white: #FFFFFF;
    --gray: #9E9E9E;

    --shadow: 0 4px 20px rgba(255, 133, 162, 0.15);
    --radius: 12px;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Buttons */
button,
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.3);
    text-align: center;
}

button:hover,
.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 133, 162, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #00695C;
    box-shadow: 0 4px 10px rgba(127, 231, 204, 0.3);
}

.btn-secondary:hover {
    background-color: #64D8BC;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

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

/* Cards */
.card,
.novel-card,
.auth-card,
.novel-header,
.chapter-list {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 133, 162, 0.1);
    overflow: hidden;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #FFE0E9;
    border-radius: var(--radius);
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #FFFDFD;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    margin-top: 0;
}

h1 {
    font-size: 2rem;
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.alert-success {
    background: #E0F2F1;
    color: #00695C;
    border: 1px solid #B2DFDB;
}