/* 
 * STYLE.CSS - Premium UI/UX Design System cho GigGo
 * Công nghệ: Pure CSS3 + Bootstrap 5 overrides
 */

/* =========================================================
   TASK 1: GLOBAL DESIGN TOKENS (CSS VARIABLES)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Typography scale */
  --text-xs:    11px;
  --text-sm:    13px;
  --text-base:  14px;
  --text-md:    15px;
  --text-lg:    18px;
  --text-xl:    22px;
  --text-2xl:   28px;

  /* Font weights */
  --weight-normal: 400;
  --weight-bold:   500;

  /* Brand colors */
  --brand-primary:    #006b5d;
  --brand-primary-dk: #005a4e;
  --brand-primary-lt: #E6F7F5;

  /* Primary color aliases (for Bootstrap override compatibility) */
  --primary-color:    #006b5d;
  --primary-hover:    #005a4e;

  /* Neutral palette */
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Additional utility variables */
  --bg-card: #ffffff;
  --text-muted: #94A3B8;
}

/* =========================================================
   TASK 2: GLOBAL BASE RESET & TYPOGRAPHY
   ========================================================= */
body {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  margin-top: 0;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4, h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p { color: var(--gray-600); margin-bottom: var(--space-md); }
.text-muted { color: var(--gray-400) !important; }
a { text-decoration: none; color: var(--brand-primary); transition: var(--transition-smooth); }
a:hover { color: var(--brand-primary-dk); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* =========================================================
   TASK 3: COMPONENT DEFAULTS (CARDS, BUTTONS, TABLES, BADGES)
   ========================================================= */

/* Cards */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg) !important;
  border: 0.5px solid var(--gray-200) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition-smooth);
}
.card-body { padding: var(--space-lg) !important; }

/* Buttons */
.btn-primary {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  border-radius: var(--radius-md) !important;
  font-weight: var(--weight-bold) !important;
  font-size: var(--text-sm) !important;
  padding: 8px 18px !important;
  color: #ffffff !important;
  transition: all 0.15s ease !important;
}
.btn-primary:hover {
  background: var(--brand-primary-dk) !important;
  border-color: var(--brand-primary-dk) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.25) !important;
}

/* Tables */
.table { font-size: var(--text-sm); color: var(--gray-800); width: 100%; border-collapse: collapse; }
.table thead th {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 16px;
  text-align: left;
}
.table tbody td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid var(--gray-100); }
.table-hover tbody tr:hover { background: var(--gray-50); }

/* Badges */
.badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 4px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* Navbar refinement */
.navbar {
  background: #ffffff !important;
  box-shadow: 0 1px 0 var(--gray-200) !important;
  padding: 12px 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand { font-size: var(--text-lg) !important; font-weight: 800; color: var(--gray-900) !important; }
.nav-link { font-size: var(--text-sm) !important; color: var(--gray-600) !important; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--brand-primary) !important; }
/* =========================================================
   TASK 3: MICRO-INTERACTIONS & ANIMATIONS
   ========================================================= */

/* Cards Hover Lift */
.card {
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
}

/* Tắt hover cho card auth hoặc các card không cần tương tác */
.auth-card:hover {
    transform: none;
}

/* Button States */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(34, 126, 137, 0.3); /* Shadow primary */
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* =========================================================
   TASK 4: LAYOUT & COMPONENT REFINEMENT
   ========================================================= */

/* Premium Hero Section Upgraded (Task: Hero Redesign) */
.hero-section {
    background: linear-gradient(135deg, #F0FDF9 0%, #E6F7F4 40%, #F0F9FF 100%) !important;
    padding: 120px 0 100px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-decorative-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

#typing-text {
    border-right: 3px solid var(--brand-primary);
    padding-right: 5px;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--brand-primary) }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #0F172A !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: #0D9488 !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Proof Strip */
.social-proof-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    background: #0D9488;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-left: -8px;
}

.avatar-item:first-child { margin-left: 0; }
.avatar-item.bg-orange { background: #F59E0B; }
.avatar-item.bg-blue { background: #3B82F6; }

.social-proof-text {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.social-proof-stars {
    color: #F59E0B;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge {
    font-size: 14px;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modern Search Bar Refined */
.modern-search-refined {
    background: white;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.search-input-refined {
    border: none !important;
    background: transparent !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    flex: 1;
    box-shadow: none !important;
    height: auto !important;
}

.btn-search-refined {
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-weight: 700 !important;
    background: #0D9488 !important;
    border: none !important;
    color: white !important;
    transition: all 0.2s ease;
}

.btn-search-refined:hover {
    background: #0F766E !important;
    transform: translateY(-1px);
}

/* Benefit Chips */
.benefit-chips {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.benefit-chip {
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.benefit-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-icon-box {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #F0FDF9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-content {
    text-align: left;
}

.benefit-title {
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0;
}

.benefit-desc {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px dashed #e2e8f0;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Modern Sidebar Redesign (Task: Sidebar Redesign) */
.sidebar {
    background-color: #F8FAFB !important;
    border-right: 1px solid #E8ECF0 !important;
    padding: 24px 16px !important;
}



#adminTabs .nav-link {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #4A5568;
    font-weight: 400;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    background: transparent;
    border: none;
    justify-content: flex-start; /* Ensure left alignment */
}

#adminTabs .nav-link span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

#adminTabs .nav-link i {
    font-size: 18px;
    min-width: 20px;
    color: #718096;
    margin-right: 0 !important;
}

#adminTabs .nav-link:hover {
    background: #EDF2F7;
    color: #1A202C;
}

#adminTabs .nav-link:hover i {
    color: #2D3748;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #0D9488, #0F766E) !important;
    color: #FFFFFF !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.nav-pills .nav-link.active i {
    color: #FFFFFF !important;
}

.nav-pills .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background-color: #E8ECF0;
    margin: 16px 14px;
}

/* Sidebar Admin Profile Card */
.sidebar-admin-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E8ECF0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: #0D9488;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
}

.admin-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A202C;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.admin-role {
    font-size: 12px;
    color: #718096;
}

/* Badges */
.badge {
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Auth Pages Styles */
.auth-card {
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.auth-header {
    background-color: var(--primary-color);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
}

.auth-header h2 {
    color: white !important;
    margin-bottom: 0.5rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-card:hover {
    transform: none !important;
}
.bg-giggo-primary {
    background-color: #006b5d !important;
}
.text-giggo-light {
    color: #f4fbf9 !important;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
}
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }

/* Pulsing Green Dot for active status badge */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(25, 135, 84, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}
.pulsing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #198754;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-green 2s infinite;
}

/* Custom premium styles for portfolio page */
.portfolio-empty-gallery {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc;
    border-style: dashed !important;
    border-width: 2px !important;
}

.portfolio-skill-badge {
    background-color: rgba(0, 107, 93, 0.08) !important;
    color: #006b5d !important;
    border: 1px solid rgba(0, 107, 93, 0.15) !important;
}

/* FOCUS STYLES — added for premium UI/UX */
.form-control:focus, .form-select:focus {
  border-color: #0D9488 !important;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12) !important;
}

