/* Netsite-Inspired WHMCS Theme */

:root {
    --primary-orange: #FF6B35;
    --primary-orange-hover: #FF5722;
    --dark-text: #2C3E50;
    --light-gray: #F8F9FA;
    --border-gray: #E8EAED;
    --success-green: #4CAF50;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #5A6C7D;
}

/* Header - Minimalistisk som Netsite */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header .navbar {
    padding: 1rem 0;
}

.header .logo {
    max-height: 40px;
}

.header .navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.header .navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

.header .navbar-nav .nav-link:hover {
    color: var(--primary-orange) !important;
    background: var(--light-gray);
}

.header .navbar-nav .btn {
    margin-left: 0.5rem;
}

/* Hero Section - Simpel og ren */
.hero-section {
    background: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.1rem;
    color: #5A6C7D;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Domain Search - Fremhævet som Netsite */
.domain-search {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: -2rem auto 3rem;
    max-width: 700px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-gray);
}

.domain-search h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.domain-search .input-group {
    box-shadow: none;
}

.domain-search input {
    border: 2px solid var(--border-gray);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius) 0 0 var(--radius);
    transition: border-color 0.2s ease;
}

.domain-search input:focus {
    border-color: var(--primary-orange);
    box-shadow: none;
    outline: none;
}

.domain-search .btn {
    padding: 1rem 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
}

/* Cards - Rene og simple */
.card {
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    color: var(--dark-text);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}

/* Buttons - Orange accent som Netsite */
.btn {
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
}

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

.btn-success {
    background: var(--success-green);
    color: white;
}

.btn-light {
    background: var(--light-gray);
    color: var(--dark-text);
    border: 1px solid var(--border-gray);
}

/* Product Cards - Netsite stil */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.product-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 1.25rem 0;
}

.product-card .price small {
    font-size: 1rem;
    color: #5A6C7D;
    font-weight: 400;
}

.product-card .price-label {
    font-size: 0.875rem;
    color: #5A6C7D;
    display: block;
    margin-bottom: 0.25rem;
}

.product-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.product-card ul li {
    padding: 0.5rem 0;
    color: #5A6C7D;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--light-gray);
}

.product-card ul li:last-child {
    border-bottom: none;
}

.product-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Feature Icons */
.feature-box {
    text-align: center;
    padding: 1.5rem;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    display: block;
}

.feature-box h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.feature-box p {
    font-size: 0.95rem;
    color: #5A6C7D;
    margin: 0;
}

/* Tables */
.table {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-gray);
}

.table thead {
    background: var(--light-gray);
}

.table thead th {
    font-weight: 600;
    color: var(--dark-text);
    border-bottom: 2px solid var(--border-gray);
    padding: 1rem;
    font-size: 0.9rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
}

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

/* Badges */
.badge {
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge.bg-success {
    background: var(--success-green) !important;
}

.badge.bg-warning {
    background: #FF9800 !important;
}

.badge.bg-danger {
    background: #F44336 !important;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid var(--success-green);
}

.alert-danger {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

.alert-info {
    background: #E3F2FD;
    color: #1565C0;
    border-left: 4px solid #2196F3;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-gray);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: none;
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.95rem;
}

/* Footer - Minimalistisk */
.footer {
    background: var(--light-gray);
    color: var(--dark-text);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-gray);
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--dark-text);
}

.footer a {
    color: #5A6C7D;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--primary-orange);
}

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

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #5A6C7D;
    font-size: 0.9rem;
}

/* Stats Cards */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 0;
}

.stat-card p {
    margin: 0.5rem 0 0;
    color: #5A6C7D;
    font-size: 0.9rem;
}

/* Info Boxes - Som Netsite's feature boxes */
.info-box {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.info-box h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #5A6C7D;
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-heading p {
    font-size: 1.1rem;
    color: #5A6C7D;
    max-width: 600px;
    margin: 0 auto;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--dark-text);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .domain-search {
        margin: -1rem 1rem 2rem;
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
}

/* Utilities */
.text-orange {
    color: var(--primary-orange);
}

.bg-light-gray {
    background: var(--light-gray);
}

.border-light {
    border-color: var(--border-gray) !important;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid var(--border-gray);
    border-top: 3px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   MAIN CONTENT WRAPPER
   ============================================= */
.main-content {
    min-height: calc(100vh - 60px);
    background: var(--white);
}

/* =============================================
   PLESK MANAGER ADDON - Dark theme integration
   Giver addon'en fuld bredde og mørk baggrund
   ============================================= */
body:has(#pm) .main-content {
    background: #0f1117;
    padding: 0;
}

body:has(#pm) .footer {
    background: #161b27;
    border-top: 1px solid rgba(255,255,255,0.07);
}

body:has(#pm) .footer,
body:has(#pm) .footer a,
body:has(#pm) .footer p,
body:has(#pm) .footer h5 {
    color: #64748b;
}

body:has(#pm) .footer a:hover {
    color: #e2e8f0;
}

body:has(#pm) .footer-bottom {
    border-top-color: rgba(255,255,255,0.07);
    color: #475569;
}
