/* Minh Ngọc Modern Corporate Stylesheet */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0d9488;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    
    /* Header defaults */
    --header-bg: #ffffff;
    --header-text: #334155;
    --header-text-hover: #2563eb;
    
    /* Footer defaults */
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --footer-link-hover: #ffffff;
    
    --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark, #0f172a);
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: var(--header-bg, rgba(255, 255, 255, 0.8)) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--header-text, #334155) !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--header-text-hover, var(--primary-color, #2563eb)) !important;
    background: rgba(37, 99, 235, 0.04);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 10% 90%, rgba(13, 148, 136, 0.05) 0%, transparent 60%);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Cards */
.custom-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(37, 99, 235, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.bg-primary-light {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

.bg-secondary-light {
    background-color: rgba(13, 148, 136, 0.08);
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 26px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Portfolio Details */
.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
}

.portfolio-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4));
    padding: 24px;
    color: white;
}

/* Footer styling */
.footer-custom {
    background-color: var(--footer-bg, var(--dark-bg, #0f172a));
    color: var(--footer-text, var(--text-muted, #94a3b8));
    padding: 80px 0 30px 0;
}

.footer-custom h5 {
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-link {
    color: var(--footer-text, var(--text-muted, #94a3b8));
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--footer-link-hover, var(--primary-color, #ffffff));
}

.footer-custom .text-muted {
    color: var(--footer-text, var(--text-muted, #94a3b8)) !important;
    transition: all 0.2s ease;
}

.footer-custom a.text-muted:hover {
    color: var(--footer-link-hover, var(--primary-color, #ffffff)) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    margin-top: 50px;
}

/* Form Styles */
.form-control-custom {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Admin Dashboard Styles */
.admin-sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    background-color: var(--dark-bg, #0f172a);
    min-height: 100vh;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link {
    color: #94a3b8 !important;
    padding: 12px 20px !important;
    border-radius: 8px;
    margin: 4px 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.admin-sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary-color, #2563eb) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-main {
    flex: 1;
    min-width: 0;
    background-color: var(--light-bg, #f8fafc);
    min-height: 100vh;
}

/* Quick Page Transitions & Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Admin Settings Tabs Styling */
#settingsTabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 8px;
    flex-wrap: wrap;
}

#settingsTabs .nav-item {
    margin-bottom: -2px;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
}

#settingsTabs .nav-link {
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b !important;
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

#settingsTabs .nav-link:hover {
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

#settingsTabs .nav-link.active {
    color: #2563eb !important;
    border-bottom: 2px solid #2563eb !important;
    background: transparent !important;
}

/* Premium Theme Color Input Group */
.theme-color-group {
    display: flex;
    align-items: stretch;
}

.theme-color-group .form-control-color-custom {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px 0 0 8px;
    border-right: none;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
    flex: none;
}

.theme-color-group .form-control-color-custom::-webkit-color-swatch-wrapper {
    padding: 0;
}

.theme-color-group .form-control-color-custom::-webkit-color-swatch {
    border: none;
    border-radius: 7px 0 0 7px;
}

.theme-color-group .form-control-custom {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    height: 48px;
}

