/* Base reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: #fff;
}


/* Custom cursors */
html, body {
    cursor: url('../../images/cursor.png') 6 2, auto;
}

a, button, [role="button"], .btn,
.nav-list a, .social-btn,
input[type="button"], input[type="submit"], input[type="reset"],
label, select, summary {
    cursor: url('../../images/activec.png') 6 2, pointer;
}

/* Page Header Section */
.page-header {
    width: 100%;
    min-width: 1300px;
    min-height: 2841px;
    background-image: url("../../images/bg_page.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-11 {
    width: 100%;
    min-width: 1300px;
    height: 70px;
    position: absolute;
    top: 0px;
    z-index: 2;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-logo {
    max-width: 600px;
    height: auto;
    margin-top: 450px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
    animation: floatingAnimation 5s ease-in-out infinite, glowingAnimation 2s ease-in-out infinite;
}

/* Main Content Section */
.page-content {
    width: 100%;
    min-width: 1300px;
    position: absolute;
    top: 950px;
    min-height: 500px;
}

.content-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 5px;
}

.content-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 5px;
    box-shadow: none;
    border: none;
}

.content-header {
    font-size: 48px;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 20px;
    text-align: center;
}

/* Registration Form Styles */
.register-form-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: white;
    padding: 60px 80px;
    border-radius: 10px;
    box-shadow: none;
    border: none;
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: none;
}

.form-title {
    color: #1976D2;
    font-size: 94px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    font-size: 36px;
    margin: 0;
}

.register-form .form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.register-form .form-control,
.register-form .form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.register-form .form-control:focus,
.register-form .form-select:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.1);
    background-color: white;
}

.register-form .input-group .btn {
    border: 1px solid #ddd;
    border-left: none;
    background-color: white;
    color: #2196F3;
    transition: all 0.3s ease;
}

.register-form .input-group .btn:hover {
    background-color: #2196F3;
    color: white;
}

.register-form .input-group {
    gap: 0;
}

.register-form .input-group .btn {
    padding: 12px 15px;
}

/* Security Code Section */
.security-code-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.security-code-wrapper .form-control {
    flex: 1;
}

.captcha-display {
    background: #f7f7f7;
    padding: 12px 30px;
    border-radius: 8px;
    border: 2px solid #d7d7d7;
}

.captcha-text {
    color: #666;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Checkbox */
.register-form .form-check {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 0;
    margin-top: 10px;
}

.register-form .form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #2196F3;
    margin-top: 3px;
    margin-right: 12px;
    cursor: pointer;
}

.register-form .form-check-input:checked {
    background-color: #2196F3;
    border-color: #2196F3;
}

.register-form .form-check-label {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Submit Button */
.btn-register {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    margin-top: 0;
    margin-bottom: 0;
}

.btn-register:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
}

.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Login Link */
.login-link {
    color: #666;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 0;
}

.login-link a {
    color: #2196F3;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #1976D2;
    text-decoration: underline;
}

/* ==================== DASHBOARD STYLES ==================== */

/* Dashboard Wrapper */
.dashboard-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
}

/* User Profile Section */
.user-profile-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e7e7e7;
    flex-wrap: wrap;
    gap: 20px;
}

.user-info {
    flex: 1;
    min-width: 250px;
}

.user-id {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.user-id span {
    color: #2196F3;
    font-weight: 700;
}

.user-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    text-transform: none;
}

.btn-change-password {
    background-color: #4CAF50;
    color: white;
}

.btn-change-password:hover {
    background-color: #45a049;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-change-email {
    background-color: #1a65b3;
    color: white;
}

.btn-change-email:hover {
    background-color: #125193;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 81, 147, 0.4);
}

.btn-logout {
    background-color: #F44336;
    color: white;
}

.btn-logout:hover {
    background-color: #DA190B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Character Section */
.character-section {
    margin-top: 40px;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    color: #106bd9;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Character Table */
.character-table-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.character-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.character-table thead {
    background-color: #65778b;
}

.table-header-row {
    background-color: #65778b;
}

.table-header-row th {
    color: white;
    font-weight: 700;
    padding: 16px 12px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.col-character-name {
    text-align: left;
    width: 20%;
}

.col-level {
    width: 15%;
}

.col-job {
    width: 25%;
}

.col-map {
    width: 20%;
}

.col-status {
    width: 20%;
}

.character-row {
    border-bottom: 1px solid #E8E8E8;
    transition: background-color 0.2s ease;
}

.character-row:hover {
    background-color: #F5F5F5;
}

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

.character-row td {
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.char-name {
    text-align: left;
    font-weight: 600;
    color: #2196F3;
}

.char-level {
    font-weight: 600;
    color: #1976D2;
}

.char-job {
    color: #555;
}

.char-map {
    color: #666;
}

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

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-online {
    background-color: #4CAF50;
    color: white;
}

.status-offline {
    background-color: #FF6B6B;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-wrapper {
        padding: 30px 20px;
    }

    .user-profile-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 20px 15px;
    }

    .user-id {
        font-size: 24px;
    }

    .btn-action {
        padding: 10px 16px;
        font-size: 12px;
        gap: 5px;
    }

    .btn-action i {
        display: none;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .character-table {
        font-size: 12px;
    }

    .table-header-row th {
        padding: 12px 8px;
        font-size: 11px;
    }

    .character-row td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .col-job {
        display: none;
    }

    .col-character-name {
        width: 30%;
    }

    .col-level {
        width: 20%;
    }

    .col-map {
        width: 25%;
    }

    .col-status {
        width: 25%;
    }
}

@media (max-width: 480px) {
    .dashboard-wrapper {
        padding: 15px 10px;
    }

    .user-id {
        font-size: 18px;
    }

    .user-actions {
        gap: 10px;
    }

    .btn-action {
        padding: 8px 12px;
        font-size: 11px;
    }

    .section-title {
        font-size: 18px;
    }

    .character-table-wrapper {
        overflow-x: auto;
    }

    .table-header-row th {
        padding: 10px 6px;
        font-size: 10px;
    }

    .character-row td {
        padding: 8px 6px;
        font-size: 11px;
    }

    .col-character-name {
        width: 35%;
    }

    .col-level {
        width: 20%;
    }

    .col-map {
        width: 25%;
    }

    .col-status {
        width: 20%;
    }

    .status-badge {
        padding: 4px 10px;
        font-size: 10px;
    }
}

/* News Grid - ตรงกลาง */
.news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.news-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-badge {
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.badge-news { background-color: #2196F3; }
.badge-activities { background-color: #FF9800; }
.badge-update { background-color: #4CAF50; }
.badge-patch { background-color: #9C27B0; }
.badge-promotion { background-color: #F44336; }
.badge-gameguide { background-color: #607D8B; }

.news-card-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.news-date {
    font-size: 12px;
    color: #666;
    margin: 0 0 15px 0;
}

.news-card-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.news-card-btn:hover {
    background-color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .register-form-wrapper {
        padding: 25px;
    }

    .form-title {
        font-size: 24px;
    }

    .security-code-wrapper {
        flex-direction: column;
    }

    .captcha-display {
        width: 100%;
        text-align: center;
    }
}