/* assets/css/style.css */

/* LINESeedSansTH Font Faces */
@font-face {
    font-family: 'LINESeedSansTH';
    src: url('../fonts/LINESeedSansTH_W_Th.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'LINESeedSansTH';
    src: url('../fonts/LINESeedSansTH_W_Rg.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'LINESeedSansTH';
    src: url('../fonts/LINESeedSansTH_W_Bd.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'LINESeedSansTH';
    src: url('../fonts/LINESeedSansTH_W_He.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'LINESeedSansTH';
    src: url('../fonts/LINESeedSansTH_W_XBd.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'LINESeedSansTH', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-left .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #3b82f6;
    text-decoration: none;
}

.nav-left .logo i {
    font-size: 2rem;
}

.nav-center {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.nav-item.active {
    background: #3b82f6;
    color: white;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}

.avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Profile Menu */
.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    min-width: 280px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.profile-menu.show {
    display: block;
}

.profile-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-details .user-name {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-email {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.menu-list {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.menu-list:last-child {
    border-bottom: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item:hover {
    background: #f8fafc;
    color: #3b82f6;
}

.menu-item.logout {
    color: #ef4444;
}

.menu-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.menu-item i {
    font-size: 1.25rem;
    width: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.login-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.login-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1e293b;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 400px;
}

.visual-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.visual-card .card-header i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.visual-card .card-header span {
    font-weight: 700;
    color: #1e293b;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.group-item:hover {
    background: #f8fafc;
}

.group-item .group-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.group-info {
    flex: 1;
}

.group-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.group-members {
    font-size: 0.875rem;
    color: #64748b;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 2rem;
}

/* Forms */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-size: 1.25rem;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    padding-left: 1rem;
}

.form-textarea ~ .input-icon {
    align-self: flex-start;
    margin-top: 1rem;
}

.helper-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.file-upload i {
    font-size: 2rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.file-upload input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #64748b;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #64748b;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
}

.card-body {
    padding: 2rem;
}

/* Groups */
.groups-container {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.group-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.group-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.group-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.group-info {
    flex: 1;
}

.group-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.group-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.group-privacy,
.group-members {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.group-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.group-actions {
    display: flex;
    gap: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #64748b;
    font-weight: 600;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.content-card .card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.content-card .card-body {
    padding: 1.5rem;
}

/* Recent List */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: #f8fafc;
}

.recent-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
}

.recent-content {
    flex: 1;
}

.recent-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.recent-info {
    font-size: 0.875rem;
    color: #64748b;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f8fafc;
}

.activity-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: #64748b;
}

/* Status & Loading */
.status-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.loader {
    border: 3px solid #f1f5f9;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-center {
        display: none;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        margin: 1rem;
    }
    
    .search-box input {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .nav-left .logo span {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .card-actions {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
}


/* เพิ่มใน assets/css/style.css */

.license-item .status-inactive {
    color: #ef4444;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.empty-state p {
    margin-bottom: 2rem;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    height: 400px;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* DOTS */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    width: 36px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: all .3s ease;
}

.dot.active {
    background: #3b82f6;
    width: 48px;
}

/* ARROWS */
.arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.arrows button {
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'LINESeedSansTH', sans-serif;
}

.arrows button:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.1);
}

/* Hero Section Adjustments */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Multiple Accounts Styles */
.accounts-management {
    margin-bottom: 2rem;
}

.accounts-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: between;
    align-items: center;
    transition: all 0.3s ease;
}

.account-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png?20150327203541');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.account-details h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.account-details p {
    color: #64748b;
    font-size: 0.875rem;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-connected {
    color: #10b981;
    font-weight: 600;
}

.status-disconnected {
    color: #ef4444;
    font-weight: 600;
}

.account-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Font Family for All Elements */
* {
    font-family: 'LINESeedSansTH', 'Prompt', sans-serif;
}

/* Ensure buttons use the font */
.btn, .login-trigger, .modal-close, .arrows button {
    font-family: 'LINESeedSansTH', 'Prompt', sans-serif;
}

/* Form elements font */
.form-input, .form-textarea, select, input, textarea, button {
    font-family: 'LINESeedSansTH', 'Prompt', sans-serif;
}

/* เพิ่มใน assets/css/style.css */

/* Accounts Section */
.accounts-section {
    margin-top: 2rem;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.account-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.account-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-info {
    flex: 1;
}

.account-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.account-facebook-name {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.account-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.action-content h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.action-content p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Groups Selection */
.groups-selection {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.groups-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.selection-actions {
    display: flex;
    gap: 0.5rem;
}

.selection-count {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.groups-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background: #f8fafc;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.25rem;
}

.checkbox-item label {
    flex: 1;
    cursor: pointer;
}

.group-name {
    display: block;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.group-meta {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

/* Content Grid for Share Post */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.large-card {
    grid-column: 1;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    margin: 0;
    cursor: pointer;
}

/* Post Preview */
.post-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 200px;
}

.preview-placeholder {
    text-align: center;
    color: #64748b;
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .groups-selection-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .account-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* เพิ่มใน assets/css/style.css */

/* Form Summary */
.form-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.form-summary h4 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item .label {
    color: #64748b;
    font-weight: 500;
}

.summary-item .value {
    color: #1e293b;
    font-weight: 600;
}

/* Input with Suffix */
.input-group {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.875rem;
}

.form-input {
    padding-right: 60px !important;
}

/* Progress Section */
.progress-section {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.progress-placeholder {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

.progress-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.progress-log {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.progress-log:last-child {
    border-bottom: none;
}

.progress-log-success {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
}

.progress-log-error {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}

.progress-log-warning {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.progress-log-info {
    background: #f0f9ff;
    border-left: 3px solid #0ea5e9;
}

.log-time {
    color: #64748b;
    font-size: 0.75rem;
    min-width: 80px;
}

.log-message {
    flex: 1;
    color: #1e293b;
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-stat {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-label {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Progress Bar */
.progress-bar-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Progress Actions */
.progress-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.remove-image:hover {
    background: #dc2626;
}

/* File Upload Area */
.file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.file-upload i {
    font-size: 2rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.file-upload input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Code styling for variables */
code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .progress-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}


.config-form {
    width: 100%;
}

.config-data-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #64748b;
}

.data-item i {
    color: #3b82f6;
}

.configs-list {
    max-height: 400px;
    overflow-y: auto;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.config-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.config-info {
    flex: 1;
}

.config-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.config-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.config-meta {
    display: flex;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
}

.config-actions {
    display: flex;
    gap: 0.5rem;
}

/* Button Colors */

.btn-outline.btn-danger {
    background: transparent;
    color: #ef4444;
}

.btn-outline.btn-danger:hover {
    background: #ef4444;
    color: white;
}


.dekbangtlez-notify {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    background: #0b2245;
    color: #bfdbfe;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(100%);
}

.dekbangtlez-notify.show {
    opacity: 1;
    transform: translateX(0);
}

.dekbangtlez-notify .notify-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    width: 28px;
    height: 28px;
}

.dekbangtlez-notify .notify-title {
    font-weight: 600;
    font-size: 14px;
}

.dekbangtlez-notify .notify-desc {
    font-size: 13px;
    opacity: .85;
}

.dekbangtlez-notify.success { background: #063d22; color: #bbf7d0; }
.dekbangtlez-notify.error   { background: #3f0e10; color: #fecaca; }
.dekbangtlez-notify.warning { background: #4d3200; color: #fde68a; }
.dekbangtlez-notify.info    { background: #0b2245; color: #bfdbfe; }

@media (max-width:560px){
    .dekbangtlez-notify{
        right: 12px;
        left: 12px;
        min-width: auto;
        max-width: none;
    }
}