/*
Theme Name: HostDI Dashboard
Author: HostDI Team
Description: A custom WordPress theme for hosting management.
Version: 1.0
Text Domain: hostdi
*/

:root {
    /* --- Colors --- */
    --primary: #049C84; /* Teal */
    --primary-dark: #037a68;
    --primary-light: #e0f2f0;
    
    --background: #fffbef; /* Cream */
    --surface: #ffffff;
    --surface-hover: #f8f9fa;
    
    --text-main: #1a202c;
    --text-muted: #718096;
    
    --border: #e2e8f0;
    
    /* Status Colors */
    --success: #10b981; /* Green */
    --warning: #f59e0b; /* Orange */
    --danger: #ef4444;  /* Red */
    
    /* --- Layout --- */
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius: 8px;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Layout Wrapper */
.hostdi-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.hostdi-sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    z-index: 100;
}

.logo-container {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nav-menu {
    padding: 20px 12px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-link .icon {
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
}

iconify-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Main Content */
.hostdi-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.hostdi-header {
    height: var(--header-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.search-box {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    width: 300px;
    color: var(--text-muted);
}

.search-box input {
    border: none;
    background: transparent;
    margin-left: 10px;
    outline: none;
    width: 100%;
    color: var(--text-main);
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
    overflow-y: auto;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-trend {
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Content Split */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.section-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.card-body {
    padding: 0;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 20px;
    background: var(--background);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tr:last-child td { border-bottom: none; }

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-active { background: #d1fae5; color: var(--success); }
.status-warning { background: #fef3c7; color: var(--warning); }

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

/* Progress Bars */
.progress-bg {
    height: 6px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
    width: 100px;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

/* ==============================
   HOMEPAGE - MODERN HOSTING
   ============================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #fffbef 0%, #fff5d6 100%);
    padding: 80px 0 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--text-main);
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-hero {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--border);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.hero-stats .stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-illustration {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(4, 156, 132, 0.15);
    font-weight: 600;
    color: var(--text-main);
}

.server-main {
    width: 200px;
    height: 180px;
    justify-content: center;
    z-index: 2;
}

.server-lights {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.server-lights .light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.server-lights .light.active {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.server-line {
    width: 2px;
    height: 30px;
    background: var(--border);
}

.server-secondary {
    width: 140px;
    height: 100px;
    position: absolute;
}

.server-secondary:nth-child(3) {
    right: -120px;
    top: 40px;
}

.server-secondary:nth-child(4) {
    left: -120px;
    top: 40px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: var(--background);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.feature-icon iconify-icon {
    font-size: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(180deg, white 0%, var(--background) 100%);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 14px;
    color: var(--text-muted);
}

.toggle-label.active {
    color: var(--text-main);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(4, 156, 132, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.plan-price .currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
    color: var(--text-muted);
}

.plan-price .amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.plan-price .period {
    font-size: 16px;
    color: var(--text-muted);
}

.plan-price.highlight .amount {
    color: var(--primary);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features iconify-icon {
    color: var(--primary);
    font-size: 20px;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 12px 0px;
    text-align: center;
    border-radius: 8px;
    background: var(--background);
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--border);
    margin-top: 8px;
}

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

.btn-plan.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-plan.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--primary);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 0 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 32px;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 16px 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}
