/* =============================================================================
   MCVHost Main Stylesheet - Following Design Guide
   ============================================================================= */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-blue: #007bff;
    --primary-blue-dark: #0056b3;
    --success-green: #28a745;
    --success-green-light: #20c997;
    
    /* Neutral Colors */
    --dark-gray: #343a40;
    --medium-gray: #495057;
    --title-color: #2c3e50;
    --text-color: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    
    /* Spacing */
    --section-padding: 80px 0;
    --card-border-radius: 15px;
    --btn-border-radius: 10px;
}

/* Base Styles */
body {
    padding-top: 56px;
    line-height: 1.6;
    color: var(--text-color);
}

/* =============================================================================
   Navigation Bar
   ============================================================================= */
.navbar {
    background-color: var(--primary-blue) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--white) !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-toggler-icon {
    background-color: var(--white);
}

.navbar-nav .nav-item .nav-link {
    color: var(--white) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #f8f9fa !important;
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-nav .nav-item.services-btn .nav-link {
    background-color: var(--success-green);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item.services-btn .nav-link:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* =============================================================================
   Header Styles
   ============================================================================= */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Language Selector */
.language-selector {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.language-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: auto;
    min-width: 120px;
    border-radius: 5px;
}

.language-select option {
    background-color: var(--dark-gray);
    color: white;
}

.language-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* =============================================================================
   Cards and Components
   ============================================================================= */

/* Feature Cards */
.feature-card, .service-card {
    background: var(--white);
    border-radius: var(--card-border-radius);
    padding: 30px 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
    height: 100%;
}

.feature-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon, .service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--success-green));
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.service-icon {
    width: 80px;
    height: 80px;
    font-size: 32px;
    margin: 0 auto 25px;
}

.feature-card h3, .service-card h3 {
    color: var(--title-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p, .service-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* =============================================================================
   Buttons
   ============================================================================= */

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border: none;
    border-radius: var(--btn-border-radius);
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
}

/* Secondary Button (Green) */
.btn-glow {
    background: linear-gradient(135deg, var(--success-green), var(--success-green-light));
    border: none;
    border-radius: var(--btn-border-radius);
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: var(--white);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, var(--success-green-light), var(--success-green));
    color: var(--white);
}

/* =============================================================================
   Sections
   ============================================================================= */

/* Standard Sections */
section {
    padding: var(--section-padding);
}

.section-odd {
    background-color: var(--light-bg);
}

.section-even {
    background-color: var(--white);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--success-green));
    display: block;
    margin: 20px auto;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

/* Features Section */
#features {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

/* Services Section */
#services {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    color: var(--white);
}

#services .service-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-left: none;
}

#services .service-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

#services .section-title h2 {
    color: var(--white);
}

/* Stats Highlight */
.stats-highlight {
    background: var(--primary-blue);
    color: var(--white);
    padding: 30px;
    border-radius: var(--card-border-radius);
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.stats-highlight h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.stats-highlight p {
    opacity: 0.9;
    margin: 0;
    font-size: 1.1rem;
}

/* =============================================================================
   Social Sidebar
   ============================================================================= */
#social-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    background-color: var(--dark-gray);
    padding: 15px;
    text-align: center;
    z-index: 1000;
    border-radius: 10px 0 0 10px;
}

#social-sidebar h2 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 10px;
}

#social-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#social-sidebar li {
    display: block;
    margin-bottom: 10px;
}

#social-sidebar a {
    display: block;
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px;
    border-radius: 5px;
}

#social-sidebar a:hover {
    color: var(--success-green);
    background-color: rgba(40, 167, 69, 0.1);
}

/* =============================================================================
   Footer
   ============================================================================= */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 120px 0; /* Extra bottom padding for fixed footer */
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

footer ul li a:hover {
    color: var(--success-green);
}

footer ul li a i {
    margin-right: 8px;
    width: 20px;
}

.fixed-bottom {
    background-color: var(--dark-gray) !important;
    border-top: 1px solid var(--medium-gray);
}

.fixed-bottom a {
    color: var(--success-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fixed-bottom a:hover {
    color: var(--success-green-light);
}

/* =============================================================================
   Order Steps and Forms
   ============================================================================= */

/* Order Steps Section */
#order-steps {
    background-color: var(--white);
    padding: var(--section-padding);
}

#order-steps h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--title-color);
    font-weight: 700;
}

#order-steps ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

#order-steps li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 40px;
}

#order-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    font-weight: 600;
}

#order-steps li.active::before {
    background: linear-gradient(135deg, var(--success-green), var(--success-green-light));
}

/* Form Elements */
#form form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--card-border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#form h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--title-color);
    font-weight: 700;
}

#form label {
    display: block;
    margin-bottom: 8px;
    color: var(--title-color);
    font-weight: 500;
}

#form select,
#form input[type="text"],
#form input[type="email"],
#form input[type="password"],
#form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 16px;
    box-sizing: border-box;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

#form select:focus,
#form input[type="text"]:focus,
#form input[type="email"]:focus,
#form input[type="password"]:focus,
#form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: none;
}

#form input[type="radio"] {
    margin-right: 8px;
}

#form .payment-period label {
    display: inline-block;
    margin-right: 20px;
}

#form button {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
}

/* =============================================================================
   Typography
   ============================================================================= */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Text */
p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

/* Responsive Language Selector */
@media (max-width: 768px) {
    .language-selector {
        margin-top: 30px;
        text-align: center;
    }
    
    .language-selector form {
        justify-content: center !important;
    }
    
    /* Adjust sections for mobile */
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    header {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    #form form {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    #social-sidebar {
        display: none; /* Hide on mobile to avoid interfering with touch */
    }
}

@media (max-width: 576px) {
    header {
        padding: 40px 0;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .service-card {
        padding: 25px 20px;
    }
}

/* =============================================================================
   Utility Classes
   ============================================================================= */

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Content Cards (for text pages) */
.content-card {
    background: var(--white);
    border-radius: var(--card-border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-blue);
}

.content-card h1,
.content-card h2 {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-green);
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: rgba(0, 123, 255, 0.1);
    border-left-color: var(--primary-blue);
    color: #004085;
}

/* =============================================================================
   Invoice Styles
   ============================================================================= */

.invoice-table {
    margin: 0;
    background: var(--white);
}

.invoice-table thead th {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    border: none;
    padding: 18px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.invoice-table tbody td {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

.invoice-table tbody tr:hover {
    background-color: var(--light-bg);
}

.invoice-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-color);
}

.price-amount {
    font-weight: 600;
    color: var(--success-green);
    font-size: 1.1rem;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-unpaid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.subscription-active {
    color: var(--success-green);
}

.subscription-inactive {
    color: var(--text-color);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-pay {
    background: linear-gradient(135deg, var(--success-green), var(--success-green-light));
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: var(--white);
}

.btn-download {
    background: linear-gradient(135deg, var(--text-color), var(--dark-gray));
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    color: var(--white);
}

.btn-autopay {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-autopay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: var(--white);
}

/* Pagination Custom */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-custom {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--btn-border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.pagination-custom a, .pagination-custom span {
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-custom a {
    background: #e9ecef;
    color: var(--text-color);
}

.pagination-custom a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-custom .current {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
}

/* Mobile responsiveness for tables */
@media (max-width: 768px) {
    .invoice-table thead th {
        padding: 12px 8px;
        font-size: 0.75rem;
    }
    
    .invoice-table tbody td {
        padding: 12px 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .subscription-status {
        font-size: 0.75rem;
    }
    
    .hide-mobile {
        display: none;
    }
}

/* =============================================================================
   Service Tables (Radio, TeamTalk, Domains)
   ============================================================================= */

.service-table {
    margin: 0;
    background: var(--white);
}

.service-table thead th {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    border: none;
    padding: 18px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.service-table tbody td {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

.service-table tbody tr:hover {
    background-color: var(--light-bg);
}

/* Storage Info Component */
.storage-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.storage-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.storage-used {
    height: 100%;
    background: linear-gradient(135deg, var(--success-green), var(--success-green-light));
    transition: width 0.3s ease;
}

/* Server Status Components */
.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.server-running {
    color: var(--success-green);
}

.server-stopped {
    color: #dc3545;
}

/* Code styling for ports */
code {
    background-color: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--title-color);
}

/* Button variants for different actions */
.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    color: var(--white);
    background: linear-gradient(135deg, #c82333, #dc3545);
}

/* Enhanced responsive for service tables */
@media (max-width: 768px) {
    .service-table thead th {
        padding: 12px 8px;
        font-size: 0.75rem;
    }
    
    .service-table tbody td {
        padding: 12px 8px;
    }
    
    .storage-info {
        font-size: 0.8rem;
    }
    
    .action-buttons .btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}