/* Ghost Engine Theme - Green Theme */
/* สีเขียวสำหรับธีมหลัก เพื่อแยกจาก Shopee Dashboard */

/* Primary Colors */
:root {
    --ghost-primary: #10b981;
    --ghost-primary-dark: #059669;
    --ghost-primary-light: #34d399;
    --ghost-secondary: #065f46;
    --ghost-accent: #6ee7b7;
}

/* Body & Background */
body {
    background-color: #f0fdf4;
    color: #1f2937;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-bottom: 3px solid #e55a2b;
}

.site-header .site-title a {
    color: #ffffff;
}

.site-header .site-description {
    color: #ffe5d9;
}

/* Navigation */
.main-navigation a {
    color: #ffffff;
}

.main-navigation a:hover {
    color: #ffe5d9;
}

/* Buttons */
.button,
button,
input[type="submit"],
input[type="button"] {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #059669;
    border-color: #059669;
}

.button-primary {
    background-color: #10b981;
    border-color: #10b981;
}

.button-primary:hover {
    background-color: #059669;
    border-color: #059669;
}

/* Links */
a {
    color: #10b981;
}

a:hover {
    color: #059669;
}

/* Cards & Panels */
.card,
.panel {
    border: 1px solid #10b981;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.card:hover,
.panel:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #065f46;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
    border: 1px solid #10b981;
    border-radius: 8px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}

/* Product Cards */
.product-card {
    border: 2px solid #10b981;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.product-card .product-price {
    color: #10b981;
    font-weight: 700;
}

.product-card .product-badge {
    background-color: #10b981;
    color: #ffffff;
}

/* Footer */
.site-footer {
    background: #c44d1f;
    color: #ffe5d9;
    border-top: 3px solid #ff6b35;
}

.site-footer a {
    color: #ffab85;
}

.site-footer a:hover {
    color: #ffe5d9;
}

/* Sidebar */
.widget-area .widget {
    border: 1px solid #10b981;
    border-radius: 12px;
    background: #ffffff;
}

.widget-area .widget-title {
    color: #10b981;
    border-bottom: 2px solid #10b981;
}

/* Pagination */
.pagination a,
.pagination span {
    border: 1px solid #10b981;
    color: #10b981;
}

.pagination a:hover,
.pagination span.current {
    background-color: #10b981;
    color: #ffffff;
}

/* Search */
.search-form input[type="search"] {
    border: 1px solid #10b981;
}

.search-form button {
    background-color: #10b981;
    border-color: #10b981;
}

/* Comments */
.comment-list .comment {
    border-left: 3px solid #10b981;
}

.comment-form input,
.comment-form textarea {
    border: 1px solid #10b981;
}

/* Tables */
table {
    border: 1px solid #10b981;
}

thead {
    background-color: #10b981;
    color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #f0fdf4;
}

/* Alerts & Notices */
.notice,
.alert {
    border-left: 4px solid #10b981;
    background-color: #f0fdf4;
}

.notice.success,
.alert.success {
    background-color: #d1fae5;
    border-color: #10b981;
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Progress Bar */
progress {
    background-color: #e5e7eb;
}

progress::-webkit-progress-bar {
    background-color: #e5e7eb;
}

progress::-webkit-progress-value {
    background-color: #10b981;
}

progress::-moz-progress-bar {
    background-color: #10b981;
}

/* Tags */
.tag {
    background-color: #10b981;
    color: #ffffff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

/* Breadcrumbs */
.breadcrumb a {
    color: #10b981;
}

.breadcrumb a:hover {
    color: #059669;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .main-navigation {
        background-color: #10b981;
    }
}
