/* Main Stylesheet for SMM Panel */
/* Common styles used across multiple pages */

/* Google Fonts - Noto Sans Thai */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

/* Base Styles */
html {
    font-family: "Noto Sans Thai", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

* {
    font-family: "Noto Sans Thai", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

body {
    font-family: "Noto Sans Thai", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

/* Background Gradients */
.hero-gradient {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.login-bg, .register-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* Card Components */
.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.feature-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border: 2px solid #dc2626;
    background: linear-gradient(135deg, #2a1a1a 0%, #3a2a2a 100%);
}

.testimonial-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.contact-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.office-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.1));
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transition: all 0.3s ease;
}

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

/* Special Elements */
.stat-number {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.feature-icon {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.2));
}

/* Navigation Components */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Platform Tabs */
.platform-tab {
    transition: all 0.3s ease;
}

.platform-tab.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

/* Badges */
.popular-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    animation: pulse 2s infinite;
}

.admin-badge {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Social Buttons */
.social-btn {
    transition: all 0.3s ease;
    background: #2a2a2a;
}

.social-btn:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

/* Quick Actions */
.quick-action {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Sidebar Styles */
.sidebar {
    background-color: #1e1e1e;
    transition: transform 0.3s ease;
}

.sidebar-item {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: #dc2626;
    color: #ffffff;
}

.sidebar-item.active {
    background: rgba(220, 38, 38, 0.15);
    border-left-color: #dc2626;
    color: #dc2626;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
}

/* Content Layout */
.content-with-sidebar {
    margin-left: 0;
}

@media (min-width: 768px) {
    .content-with-sidebar {
        margin-left: 16rem; /* 256px / 16 = 16rem */
    }
}

/* Responsive improvements */
@media (max-width: 640px) {
    .service-card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .hero-gradient {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    h1 {
        font-size: 2rem !important;
        line-height: 2.5rem !important;
    }
    
    h2 {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 0.75rem;
    }
    
    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .gap-8 {
        gap: 1rem !important;
    }
    
    .gap-6 {
        gap: 0.75rem !important;
    }
}

/* Improved focus states for accessibility */
*:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Print styles */
@media print {
    .mobile-menu,
    nav,
    footer,
    .btn,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-dark-bg,
    .bg-dark-card {
        background: white !important;
    }
    
    .text-white {
        color: black !important;
    }
}