/**
 * Weblio Shop Customer Portal Styles - Complete Version
 * Version: 3.0.0
 * All styles included - Clean, modern design without animations
 */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   CSS Variables - Modern Color Scheme
   ======================================== */
:root {
    --portal-primary: #0634C9;
    --portal-primary-dark: #052a9f;
    --portal-secondary: #0634C9;
    --portal-success: #10b981;
    --portal-warning: #f59e0b;
    --portal-danger: #ef4444;
    --portal-info: #3b82f6;
    --h3-color: #ffffff
    --portal-bg: #ffffff;
    --portal-white: #ffffff;
    --portal-text: #1e293b;
    --portal-text-muted: #64748b;
    --portal-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --portal-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --portal-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --portal-radius: 12px;
	
	--primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-dark: #1e40af;
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --lifetime-color: #6366f1;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --border-color: #e5e7eb;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

/* ========================================
   Global Portal Styles
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.weblio-portal-wrapper {
    min-height: 100vh;
    background: var(--portal-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.weblio-portal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* FORCE VIS AUTO-RENEW TOGGLE */
.auto-renew-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* ========================================
   Portal Header - Modern Minimal Design
   ======================================== */

.weblio-portal-header {
    background: var(--portal-white);
    border-bottom: 1px solid var(--portal-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.weblio-portal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.weblio-portal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weblio-portal-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--portal-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weblio-portal-user-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.weblio-portal-user-name {
    color: var(--portal-text);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--portal-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weblio-portal-user-name::before {
    content: "👤";
}

.weblio-portal-logout {
    background: var(--portal-primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.weblio-portal-logout:hover {
    background: var(--portal-primary-dark);
    color: #ffffff;
}

/* ========================================
   Modern Navigation Bar
   ======================================== */

.weblio-portal-nav {
    background: transparent;
    padding: 24px 0;
    /*position: sticky; */
    /*top: 70px; */
    /*z-index: 90;*/
}

.weblio-portal-nav-menu {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 16px;
    background: #f4f3f3;
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-sm);
    flex-wrap: wrap;
}

.weblio-portal-nav-menu li {
    flex: 1;
    min-width: 140px;
}

.weblio-portal-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--portal-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.weblio-portal-nav-menu a:hover {
    color: var(--portal-primary);
    background: rgba(6, 52, 201, 0.05);
}

.weblio-portal-nav-menu li.active a {
    color: white;
    background: var(--portal-primary);
}

.menu-icon {
    font-size: 18px;
}

/* ========================================
   Login/Auth Pages - Clean Design
   ======================================== */

.weblio-portal-auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--portal-bg); */
    padding: 20px;
}

.weblio-portal-auth-box {
    background: var(--portal-white);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.weblio-portal-auth-box h2 {
    margin: 0 0 8px 0;
    color: var(--portal-text);
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

.weblio-portal-auth-box p {
    color: var(--portal-text-muted);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
    font-size: 14px;
}

/* ========================================
   Forms - Clean Design
   ======================================== */

.weblio-portal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.weblio-portal-form-group {
    display: flex;
    flex-direction: column;
}

.weblio-portal-form-group label {
    margin-bottom: 6px;
    color: var(--portal-text);
    font-size: 14px;
    font-weight: 500;
}

.weblio-portal-form-group input,
.weblio-portal-form-group textarea,
.weblio-portal-form-group select {
    padding: 12px 14px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f4f4f4;
    color: var(--portal-text);
}

.weblio-portal-form-group input:focus,
.weblio-portal-form-group textarea:focus,
.weblio-portal-form-group select:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(6, 52, 201, 0.08);
}

.weblio-portal-form-group small {
    margin-top: 4px;
    color: var(--portal-text-muted);
    font-size: 12px;
}

/* ========================================
   Buttons - Clean Design (No bubble effect)
   ======================================== */
   
/* Fjern underline på hover for action links i fakturaer */
.weblio-portal-table .action-link:hover {
    text-decoration: none !important;
}

/* Eller hvis du vil fjerne ALL underline (både normal og hover) */
.weblio-portal-table .action-link {
    text-decoration: none !important;
}

.weblio-portal-table .action-link:hover {
    text-decoration: none !important;
}

.weblio-portal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
}

.weblio-portal-btn-primary {
    background: var(--portal-primary);
    color: white;
}

.weblio-portal-btn-primary:hover {
    background: var(--portal-primary-dark);
}

.weblio-portal-btn-primary:active {
    transform: scale(0.98);
}

.weblio-portal-btn-secondary {
    background: var(--portal-bg);
    color: var(--portal-text);
    border: 1px solid var(--portal-border);
}

.weblio-portal-btn-secondary:hover {
    background: var(--portal-border);
}

.weblio-portal-btn-success {
    background: var(--portal-success);
    color: white;
}

.weblio-portal-btn-success:hover {
    background: #059669;
}

/* Loading state for buttons */
.weblio-portal-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.weblio-portal-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Messages and Alerts - Subtle Design
   ======================================== */

.weblio-portal-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.weblio-portal-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.weblio-portal-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.weblio-portal-message.info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.weblio-portal-message.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ========================================
   Form Links
   ======================================== */

.weblio-portal-form-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border);
}

.weblio-portal-form-links a {
    color: var(--portal-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.weblio-portal-form-links a:hover {
    color: var(--portal-primary-dark);
    text-decoration: underline;
}

/* ========================================
   Dashboard Content
   ======================================== */

.weblio-portal-main {
    padding: 32px 0 60px;
    min-height: calc(100vh - 200px);
}

.weblio-portal-page-header {
    margin-bottom: 28px;
}

.weblio-portal-page-header h1 {
    color: var(--portal-text);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.weblio-portal-page-header p {
    color: var(--portal-text-muted);
    font-size: 15px;
    margin: 0;
}

/* Stats Grid */
.weblio-portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.weblio-portal-stat-card {
    background: var(--portal-white);
    border-radius: var(--portal-radius);
    padding: 24px;
    box-shadow: var(--portal-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--portal-border);
}

.weblio-portal-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--portal-shadow);
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: rgba(6, 52, 201, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--portal-text-muted);
    font-size: 13px;
}

/* Cards */
.weblio-portal-card {
    background: var(--portal-white);
    border-radius: var(--portal-radius);
    padding: 28px;
    box-shadow: var(--portal-shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--portal-border);
}

.weblio-portal-card h2,
.weblio-portal-card h3 {
    color: var(--portal-text);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--portal-border);
}

/* Tables */
.weblio-portal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.weblio-portal-table thead {
    background: var(--portal-bg);
}

.weblio-portal-table thead th {
    padding: 12px 16px;
    text-align: left;
    color: var(--portal-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--portal-border);
}

.weblio-portal-table tbody td {
    padding: 14px 16px;
    color: var(--portal-text);
    font-size: 14px;
    border-bottom: 1px solid var(--portal-border);
}

.weblio-portal-table tbody tr:hover {
    background: var(--portal-bg);
}

.weblio-portal-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--portal-success);
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--portal-warning);
}

.status-badge.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--portal-danger);
}

/* ========================================
   Download & Licenses - Redesigned
   ======================================== */

.weblio-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.weblio-download-card {
    background: var(--portal-white);
    border-radius: var(--portal-radius);
    overflow: hidden;
    box-shadow: var(--portal-shadow-sm);
    border: 1px solid var(--portal-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

<style>
/* Download Button Styling */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hover Effect - Blå baggrund med hvid tekst */
.download-btn:hover {
    background-color: #0634C9;
    color: #ffffff;
    border-color: #0634C9;
    box-shadow: 0 4px 12px rgba(6, 52, 201, 0.3);
}


.weblio-download-card:hover {
    box-shadow: var(--portal-shadow);
}

.weblio-download-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-secondary) 100%);
    color: white;
}

.weblio-download-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.weblio-download-header .status {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.weblio-download-body {
    padding: 20px;
}

.license-info {
    margin-bottom: 16px;
}

.license-label {
    color: var(--portal-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
    display: block;
}

.license-value {
    color: var(--portal-text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.license-key-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.license-key-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--portal-bg);
    border: 1px solid var(--portal-border);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--portal-text);
}

.copy-btn {
    padding: 10px 14px;
    background: #e5e5e5;
    color: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: #e5e5e5;
}

.license-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--portal-border);
}

.license-meta-item {
    display: flex;
    flex-direction: column;
}

.license-meta-item .label {
    color: var(--portal-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.license-meta-item .value {
    color: var(--portal-text);
    font-size: 14px;
    font-weight: 500;
}

.weblio-download-footer {
    padding: 16px 20px;
    background: var(--portal-bg);
    border-top: 1px solid var(--portal-border);
}

.download-btn {
    width: 100%;
    padding: 12px 20px;
    background: #e5e5e5;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/*
.download-btn:hover {
    background: #059669;
}
*/
.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Old download card styles for backwards compatibility */
.download-card {
    background: var(--portal-white);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--portal-border);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--portal-shadow-lg);
}

.download-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-secondary) 100%);
    color: white;
}

.download-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.download-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.download-body {
    padding: 24px;
}

.download-footer {
    padding: 24px;
    background: var(--portal-bg);
    border-top: 1px solid var(--portal-border);
}

/* ========================================
   Invoice - Professional Design
   ======================================== */

.invoice-document {
    background: var(--portal-white);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    padding: 48px;
    margin: 24px 0;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--portal-border);
}

.invoice-logo h1 {
    color: var(--portal-primary);
    font-size: 32px;
    margin: 0;
    font-weight: 700;
}

.invoice-details {
    text-align: right;
}

.invoice-details h2 {
    color: var(--portal-text);
    font-size: 24px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.invoice-details p {
    margin: 4px 0;
    color: var(--portal-text-muted);
    font-size: 14px;
}

.invoice-details strong {
    color: var(--portal-text);
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 40px 0;
}

.invoice-from h3,
.invoice-to h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoice-from p,
.invoice-to p {
    margin: 6px 0;
    color: var(--portal-text);
    font-size: 14px;
    line-height: 1.6;
}

.invoice-from strong,
.invoice-to strong {
    font-weight: 600;
    color: var(--portal-text);
}

.invoice-items {
    margin: 40px 0;
}

.invoice-items table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-items thead {
    background: var(--portal-bg);
}

.invoice-items th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--portal-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--portal-border);
}

.invoice-items th:last-child,
.invoice-items td:last-child {
    text-align: right;
}

.invoice-items tbody td {
    padding: 16px;
    color: var(--portal-text);
    font-size: 14px;
    border-bottom: 1px solid var(--portal-border);
}

.invoice-subtotal td {
    padding-top: 20px !important;
    font-size: 14px;
    color: var(--portal-text-muted);
}

.invoice-total td {
    padding: 16px !important;
    font-size: 18px;
    font-weight: 600;
    color: var(--portal-text);
    border-top: 2px solid var(--portal-border);
    border-bottom: none !important;
}

.invoice-footer {
    margin-top: 40px;
    padding: 24px;
    background: var(--portal-bg);
    border-radius: 8px;
}

.invoice-footer p {
    margin: 8px 0;
    color: var(--portal-text-muted);
    font-size: 14px;
}

.invoice-footer strong {
    color: var(--portal-text);
}

.invoice-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* ========================================
   Profile Form
   ======================================== */

.weblio-portal-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* ========================================
   Empty States
   ======================================== */

.no-data {
    text-align: center;
    color: var(--portal-text-muted);
    padding: 48px 20px;
    font-size: 15px;
    background: var(--portal-bg);
    border-radius: 8px;
    margin: 20px 0;
}

/* ========================================
   Loading States
   ======================================== */

.weblio-portal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px;
}

.weblio-portal-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--portal-border);
    border-top: 3px solid var(--portal-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   Action Links
   ======================================== */

.action-link {
    color: var(--portal-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.action-link:hover {
    background: rgba(6, 52, 201, 0.08);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--portal-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.view-all-link:hover {
    color: var(--portal-primary-dark);
}

/* ========================================
   Notification Toast
   ======================================== */

.weblio-portal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 360px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.weblio-portal-notification.success {
    background: var(--portal-success);
    color: white;
}

.weblio-portal-notification.error {
    background: var(--portal-danger);
    color: white;
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */

.weblio-portal-menu-toggle {
    display: none;
    padding: 10px 16px;
    background: var(--portal-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .weblio-portal-container {
        padding: 0 16px;
    }
    
    .weblio-portal-menu-toggle {
        display: block;
    }
    
    .weblio-portal-nav-menu {
        display: none;
        flex-direction: column;
    }
    
    .weblio-portal-nav-menu.active {
        display: flex;
    }
    
    .weblio-portal-nav-menu li {
        min-width: 100%;
    }
    
    .weblio-downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .weblio-portal-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .weblio-portal-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .weblio-portal-auth-box {
        padding: 32px 24px;
    }
    
    .invoice-document {
        padding: 24px;
    }
    
    .invoice-parties {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Hide some table columns on mobile */
    .weblio-portal-table th:nth-child(3),
    .weblio-portal-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .weblio-portal-header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .weblio-portal-user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .invoice-details {
        text-align: left;
    }
    
    .weblio-portal-page-header h1 {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .weblio-portal-header,
    .weblio-portal-nav,
    .invoice-actions,
    .weblio-portal-btn,
    .action-link,
    .download-btn,
    .copy-btn,
    .weblio-portal-logout {
        display: none !important;
    }
    
    .weblio-portal-wrapper {
        background: white;
    }
    
    .invoice-document {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    body {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Account page - Flugtende knapper */
.weblio-portal-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.weblio-portal-card-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.weblio-portal-card-flex h3 {
    margin-bottom: 20px;
}

.weblio-portal-form-flex {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.weblio-portal-form-content {
    flex: 1;
}

.weblio-portal-form-footer {
    margin-top: auto;
    padding-top: 20px;
}

/* Responsiv */
@media (max-width: 768px) {
    .weblio-portal-profile-grid {
        grid-template-columns: 1fr;
    }
}
/* =====================================================
   Cards
   ===================================================== */
.weblio-portal-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.weblio-portal-card h2,
.weblio-portal-card h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* Stats Grid */
.weblio-portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.weblio-portal-stat-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.weblio-portal-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   LICENSE CARDS - OPDATERET MED !IMPORTANT
   ===================================================== */

.weblio-licenses-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 30px !important;
}

.weblio-license-card {
    background: var(--background-white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
    position: relative !important;
	display: grid;
    grid-template-rows: auto 1fr auto; /* header | body | download */
    gap: 1rem;
    height: 100%; /* sikrer ens højde hvis de står i flex-row */
}

.weblio-license-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px) !important;
}

.weblio-license-header {
    padding: 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%) !important;
}

.weblio-license-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.license-status {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Status Dots med Animation */
/* Status Dots */
.status-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    position: relative !important;
}

.status-dot.active {
    background: var(--success-color) !important;
    animation: pulse-green 2s infinite !important;
}

.status-dot.expiring {
    background: var(--warning-color) !important;
    animation: pulse-orange 2s infinite !important;
}

.status-dot.expired {
    background: var(--danger-color) !important;
}

.status-dot.lifetime {
    background: var(--lifetime-color) !important;
    animation: pulse-purple 2s infinite !important;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}

@keyframes pulse-purple {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes pulse-purple {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.weblio-license-body {
    padding: 20px !important;
}

.license-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.license-info-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.license-info-label {
    font-size: 12px !important;
    text-transform: uppercase !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.license-info-value {
    font-size: 15px !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

/* License Actions */
.license-actions {
    display: flex !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.license-btn {
    flex: 1 !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.license-btn.primary {
    background: var(--primary-color) !important;
    color: white !important;
}

.license-btn.primary:hover:not(:disabled) {
    background: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

.license-btn.primary:disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.license-btn.secondary {
    background: var(--background-light) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.license-btn.secondary:hover {
    background: #e5e7eb !important;
    transform: translateY(-1px) !important;
	color: #000000 !important;

}

.more-btn {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
}

.more-btn:hover {
    background: var(--background-light) !important;
    border-color: var(--primary-color) !important;
}

.more-icon {
    font-size: 18px !important;
    transition: transform 0.3s ease !important;
}

/* Expanded View */
.license-expanded {
    border-top: 1px solid var(--border-color) !important;
    padding: 20px !important;
    background: var(--background-light) !important;
    display: none !important;
}

.license-expanded.show {
    display: block !important;
    animation: slideDown 0.3s ease !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.license-key-display {
    background: var(--background-white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    padding: 12px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 16px 0 !important;
	
    justify-content: space-between !important;
    margin-bottom: 0.75rem !important;    /* giver luft til det grå felt under */
}

.license-key-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    letter-spacing: 0.5px !important;
	
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex-grow: 1 !important;
    margin-right: 10px !important;
}

.copy-key-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;

    flex-shrink: 0 !important;

}

.copy-key-btn:hover {
    background: var(--primary-hover) !important;
    transform: scale(1.05) !important;
}

.copy-key-btn.copied {
    background: var(--success-color) !important;
}


/* Auto-renew Toggle */
.auto-renew-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 16px 0 !important;
    padding: 12px !important;
    background: var(--background-white) !important;
    border-radius: var(--border-radius) !important;
}

.toggle-switch {
    position: relative !important;
    width: 48px !important;
    height: 24px !important;
}

.toggle-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.toggle-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #cbd5e1 !important;
    transition: 0.4s !important;
    border-radius: 24px !important;
}

.toggle-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: 0.4s !important;
    border-radius: 50% !important;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color) !important;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px) !important;
}

/* Download Section */
.download-section {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border-color) !important;
	align-self: end; /* tvinger knappen helt ned */
}

.download-btn,
.plugin-download-btn {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.download-btn:hover,
.plugin-download-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Upgrade Badge */
.upgrade-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 8px !important;
    display: inline-block !important;
}

/* =====================================================
   Tables
   ===================================================== */
.weblio-portal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.weblio-portal-table thead {
    background: var(--background-light);
}

.weblio-portal-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.weblio-portal-table td {
    padding: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.weblio-portal-table tbody tr:hover {
    background: var(--background-light);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-pending {
    background: #fed7aa;
    color: #92400e;
}

.status-badge.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.action-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 12px;
    transition: var(--transition);
}

.action-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.view-all-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--primary-hover);
    transform: translateX(2px);
}

/* =====================================================
   Forms
   ===================================================== */
.weblio-portal-form {
    max-width: 100%;
}

.weblio-portal-form-group {
    margin-bottom: 20px;
}

.weblio-portal-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.weblio-portal-form-group input[type="text"],
.weblio-portal-form-group input[type="email"],
.weblio-portal-form-group input[type="password"],
.weblio-portal-form-group input[type="number"],
.weblio-portal-form-group select,
.weblio-portal-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--background-white);
}

.weblio-portal-form-group input:focus,
.weblio-portal-form-group select:focus,
.weblio-portal-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.weblio-portal-form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* =====================================================
   LICENSKORT - PERMANENT SYNLIGE DETALJER
   ===================================================== */

/* Skjul mere-knappen helt */
.weblio-license-card .more-btn {
    display: none !important;
}

/* Vis altid license-expanded området permanent */
.weblio-license-card .license-expanded {
    display: block !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 20px !important;
    background: var(--background-light) !important;
    animation: none !important;
}

/* Opdater license-actions layout */
.weblio-license-card .license-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

/* Gør alle knapper fuld bredde og prominente */
.weblio-license-card .license-btn {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Speciel styling til upgrade knappen */
.weblio-license-card .upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important
}

/* Renew knappen skal også være prominent */
.weblio-license-card .renew-btn {
    background: var(--primary-color) !important;
    color: white !important;
}

.weblio-license-card .renew-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}
/* Flyt upgrade section til bunden */
.upgrade-section {
    margin-top: auto !important;
    padding-top: 20px !important;
    margin-bottom: 0 !important;
}
/* Gør upgrade knappen fuld bredde */
.upgrade-section .upgrade-btn {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    border: none !important;
}

.weblio-license-body,
.license-expanded {
  display: flex;
  flex-direction: column;
}

.auto-renew-toggle {
  margin-top: 1rem;
}

/* CSS til min side - nulstilling af kodeord */

/* Password Strength Bar */
.password-strength-container {
    margin-top: 10px;
}

.password-strength-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.password-strength-bar-fill.weak {
    background: #e74c3c;
}

.password-strength-bar-fill.medium {
    background: #f39c12;
}

.password-strength-bar-fill.strong {
    background: #27ae60;
}

.password-strength-text {
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

#password-errors {
    margin-top: 8px;
}

.password-match-indicator {
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}