/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-gray: #f3f4f6;
    --medium-gray: #9ca3af;
    --dark-gray: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9fafb;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ============================================
   LOGIN STYLES
   ============================================ */
/* ============================================
   LOGIN STYLES (MODERN SPLIT DESIGN)
   ============================================ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0b1120 0%, #1e3a8a 45%, #2563eb 80%, #38bdf8 100%);
    padding: 25px 20px;
    box-sizing: border-box;
}

.login-card-split {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 520px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Left Hero Side */
.login-hero-side {
    flex: 1 1 45%;
    background: linear-gradient(170deg, #22d3ee 0%, #38bdf8 35%, #0ea5e9 70%, #0284c7 100%);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    z-index: 1;
}

.login-hero-side .hero-brand {
    position: relative;
    z-index: 2;
}

.login-hero-side .hero-brand-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.login-hero-side .hero-content {
    position: relative;
    z-index: 2;
    margin: 40px 0;
}

.login-hero-side .hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.login-hero-side .hero-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.login-hero-side .hero-footer-text {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.login-wave-bg {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    z-index: 1;
}

/* Right Form Side */
.login-form-side {
    flex: 1 1 55%;
    background: #ffffff;
    padding: 48px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.login-form-side .form-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.login-form-side .form-sub-title {
    font-size: 13.5px;
    color: #9ca3af;
    margin: 0 0 28px 0;
    line-height: 1.45;
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #8592a6;
    margin-bottom: 7px;
}

.form-input-custom {
    width: 100%;
    height: 46px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14.5px;
    color: #1f2937;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-input-custom:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.15);
}

.form-row-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0 24px 0;
}

.custom-checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 13.5px;
    color: #6b7280;
    position: relative;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #3b82f6;
    border-radius: 4px;
    background-color: #3b82f6;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
}

.custom-checkbox-container input:not(:checked) ~ .custom-checkbox-box {
    background-color: transparent;
    border-color: #cbd5e1;
    color: transparent;
}

.custom-checkbox-container input:not(:checked) ~ .custom-checkbox-box svg {
    display: none;
}

.btn-submit-blue {
    width: 100%;
    height: 48px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-submit-blue:hover {
    background: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-submit-blue:active {
    transform: scale(0.99);
}

.login-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    font-size: 13px;
    color: #6b7280;
}

.login-card-footer .signup-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.login-card-footer .signup-link:hover {
    text-decoration: underline;
}

.login-card-footer .forgot-link {
    color: #9ca3af;
    font-style: italic;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-card-footer .forgot-link:hover {
    color: #6b7280;
    text-decoration: underline;
}

.registration-scroll-body {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.registration-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.registration-scroll-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Fallback / Legacy Login Box */
.login-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #e8e8e8 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.login-header p {
    color: var(--medium-gray);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-hint {
    text-align: center;
    font-size: 12px;
    color: var(--medium-gray);
    background: var(--light-gray);
    padding: 10px;
    border-radius: 6px;
}

.login-hint a,
.login-hint .link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-hint a:hover,
.login-hint .link-primary:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-card-split {
        flex-direction: column;
        max-width: 440px;
    }
    .login-hero-side {
        padding: 30px 25px;
        min-height: 180px;
    }
    .login-hero-side .hero-content {
        margin: 20px 0;
    }
    .login-hero-side .hero-title {
        font-size: 24px;
    }
    .login-form-side {
        padding: 35px 25px;
    }
    .login-card-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f9fafb;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e3a8a, #0f172a);
    box-shadow: var(--shadow-lg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-header a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-header img {
    transition: all 0.3s ease;
}

.sidebar-header i {
    font-size: 28px;
    color: var(--primary-color);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-title {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--medium-gray);
    letter-spacing: 1px;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
}

.menu-item i {
    font-size: 16px;
    width: 20px;
}

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

.menu-item.active {
    background: var(--light-gray);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}

.submenu-header {
    justify-content: space-between;
}

.submenu-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.submenu-header .toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.submenu-header.active .toggle-icon {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background: rgba(0, 0, 0, 0.15);
    border-left: 2px solid var(--primary-dark);
}

.submenu.show {
    display: block;
}

.submenu .menu-item {
    padding: 10px 20px 10px 55px;
    font-size: 0.9em;
    color: #e2e8f0;
}

.submenu .menu-item.active {
    padding-left: 52px; /* 55px - 3px border */
}

.submenu .menu-item i {
    font-size: 14px;
}



.menu-item.logout {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--danger-color);
}

.menu-item.logout:hover {
    background: #fee2e2;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
}

/* Header Icons */
.nav-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-right: 15px;
}
.nav-icon-container {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--dark-gray);
    transition: 0.3s;
}
.nav-icon-container:hover {
    color: var(--primary-color);
}
.icon-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
}
.icon-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: -10px;
    margin-top: 15px;
    background: white;
    width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    cursor: default;
    text-align: left;
}
.icon-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}
/* Invisible bridge to keep hover active */
.icon-dropdown::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -10px;
    right: -10px;
    height: 25px;
    background: transparent;
}
.nav-icon-container:hover .icon-dropdown {
    display: block;
}
.dropdown-header {
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
    border-radius: 10px 10px 0 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}
.dropdown-body {
    max-height: 300px;
    overflow-y: auto;
}
.dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    display: block;
    text-decoration: none;
    color: var(--dark-gray);
    transition: 0.2s;
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item:hover {
    background: var(--light-gray);
}
.dropdown-item-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 3px;
}
.dropdown-item-desc {
    font-size: 0.8rem;
    color: var(--medium-gray);
    line-height: 1.3;
}


.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-gray);
    padding: 10px 15px;
    border-radius: 6px;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    color: var(--medium-gray);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.balance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
}

.balance-label i {
    color: var(--primary-color);
    font-size: 14px;
}

.balance-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.user-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

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

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 20px;
}

.card-icon.domain {
    background: #dbeafe;
    color: var(--primary-color);
}

.card-icon.hosting {
    background: #dcfce7;
    color: var(--secondary-color);
}

.card-icon.user {
    background: #fef3c7;
    color: var(--warning-color);
}

.card-icon.revenue {
    background: #fecaca;
    color: var(--danger-color);
}

.card-icon.active {
    background: #dcfce7;
    color: var(--secondary-color);
}

.card-icon.expired {
    background: #fed7aa;
    color: var(--warning-color);
}

.card-icon.warning {
    background: #fef3c7;
    color: var(--warning-color);
}

.dashboard-card h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 0;
}

.card-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.dashboard-card small {
    font-size: 12px;
    color: var(--medium-gray);
}

/* ============================================
   CHARTS AND STATUS
   ============================================ */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-container h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.status-item span:first-child {
    font-weight: 600;
    color: var(--dark-gray);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.status-badge.active {
    background: #dcfce7;
    color: var(--secondary-color);
}

.status-badge.warning {
    background: #fef3c7;
    color: var(--warning-color);
}

.status-badge.danger {
    background: #fee2e2;
    color: var(--danger-color);
}

/* ============================================
   RECENT ACTIVITY
   ============================================ */
.recent-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.recent-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item.empty {
    text-align: center;
    color: var(--medium-gray);
}

.activity-content h4 {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 3px;
}

.activity-content p {
    font-size: 13px;
    color: var(--medium-gray);
}

.activity-time {
    font-size: 12px;
    color: var(--medium-gray);
}

/* ============================================
   TABLES
   ============================================ */
.page-actions {
    margin-bottom: 20px;
}

.table-responsive {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--medium-gray);
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--dark-gray);
}

.data-table tbody tr:hover {
    background: var(--light-gray);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

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

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

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

.btn-danger {
    background: var(--danger-color);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-danger:hover {
    opacity: 0.8;
}

.btn-info {
    background: var(--info-color);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-info:hover {
    opacity: 0.8;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.modal-overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    z-index: 2000;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal.active {
    display: block;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Wide modal variant for complex forms like DNS */
.modal.modal-wide {
    max-width: 960px;
    width: 95%;
}

/* Article modal: balanced width and centered form content */
.modal.modal-article {
    max-width: 820px;
    width: 95%;
}

.modal.modal-article .modal-content {
    max-width: 820px;
    width: 95%;
    padding: 24px;
}

.modal.modal-article .modal-content form {
    max-width: 720px;
    margin: 0 auto;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--medium-gray);
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: var(--dark-gray);
}

.modal form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ============================================
   PACKAGES GRID
   ============================================ */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.packages-container {
    display: contents;
}

.package-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.package-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.package-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.package-price small {
    font-size: 14px;
    color: var(--medium-gray);
    font-weight: 600;
}

.package-features {
    list-style: none;
    margin-bottom: 20px;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.package-features i {
    color: var(--secondary-color);
    font-size: 12px;
}

/* ============================================
   HOSTING GRID
   ============================================ */
.hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.hosting-container {
    display: contents;
}

.hosting-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.hosting-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.hosting-info {
    margin-bottom: 15px;
}

.hosting-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.hosting-info-item:last-child {
    border-bottom: none;
}

.hosting-info-label {
    color: var(--medium-gray);
    font-weight: 600;
}

.hosting-info-value {
    color: var(--dark-gray);
    font-weight: 600;
}

.hosting-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.hosting-status.active {
    background: #dcfce7;
    color: var(--secondary-color);
}

.hosting-status.suspended {
    background: #fee2e2;
    color: var(--danger-color);
}

.hosting-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.hosting-actions .btn {
    flex: 1;
    min-width: 120px;
}

.website-link {
    color: var(--primary-color);
    text-decoration: none;
}

.website-link:hover {
    text-decoration: underline;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

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

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

.notification.success {
    background: #10b981;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ============================================
   BILLING
   ============================================ */
.billing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.summary-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.summary-card .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.summary-card .status {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
}

.summary-card .status.active {
    color: #10b981;
}

.summary-card .status.warning {
    color: #ef4444;
}

.billing-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.billing-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

/* ============================================
   SETTINGS
   ============================================ */
.settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.settings-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .sidebar.show-mobile {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
    }

    .top-bar-left {
        width: 100%;
    }

    .search-box {
        max-width: 100%;
        flex: 1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .billing-summary {
        grid-template-columns: 1fr;
    }

    .settings-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {

    .content {
        padding: 15px;
    }

    .page h1 {
        font-size: 18px;
    }

    .page h2 {
        font-size: 16px;
    }

    .dashboard-card {
        padding: 15px;
    }

    .card-value {
        font-size: 20px;
    }

    .login-box {
        padding: 20px;
    }

    .top-bar {
        padding: 12px 15px;
    }

    .user-info .user-name {
        display: none;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 6px 4px;
        font-size: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.active {
    animation: slideIn 0.3s ease;
}

.modal-overlay.active {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   DNS MANAGEMENT
   ============================================ */
.dns-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.dns-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 14px;
}

.info-item code {
    display: block;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    word-break: break-all;
    margin-bottom: 10px;
}

.info-item .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ============================================
   SSL CERTIFICATE
   ============================================ */
.ssl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ssl-container {
    display: contents;
}

.ssl-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--warning-color);
}

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

.ssl-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.ssl-card .ssl-type {
    font-size: 12px;
    color: var(--medium-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ssl-card .ssl-details {
    margin: 15px 0;
    font-size: 14px;
}

.ssl-card .ssl-details p {
    margin: 8px 0;
    color: var(--dark-gray);
}

.ssl-card .ssl-details label {
    font-weight: 600;
    color: var(--medium-gray);
}

.ssl-card .ssl-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

.ssl-card .ssl-status.active {
    background: #dcfce7;
    color: var(--secondary-color);
}

.ssl-card .ssl-status.expired {
    background: #fee2e2;
    color: var(--danger-color);
}

/* ============================================
   EMAIL MANAGEMENT
   ============================================ */
.email-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

/* ============================================
   DATABASE MANAGEMENT
   ============================================ */
.database-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

/* ============================================
   SUPPORT & TICKETS
   ============================================ */
.support-container {
    display: grid;
    gap: 30px;
}

.support-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);

}

.support-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0px;
    color: var(--dark-gray);
}

.ticket-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    margin-bottom: 10px;
}

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

.ticket-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-item-header h4 {
    font-weight: 700;
    color: var(--dark-gray);
}

.ticket-item-body {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

/* ============================================
   BUTTON VARIANTS
   ============================================ */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
code {
    background: var(--light-gray);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.text-muted {
    color: var(--medium-gray);
}

.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--secondary-color);
}

.text-warning {
    color: var(--warning-color);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* ============================================
   DETAIL MODAL - Domain Details
   ============================================ */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.detail-section {
    padding: 0;
}

.detail-group {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.detail-group:last-of-type {
    border-bottom: none;
}

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--medium-gray);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
    word-break: break-word;
    padding: 4px 0;
}

.nameserver-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.nameserver-item {
    padding: 8px;
    background: var(--light-gray);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.nameserver-item .detail-label {
    margin-bottom: 3px;
}

.nameserver-value {
    padding: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary-color);
    word-break: break-all;
    line-height: 1.3;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.error-message,
.success-message {
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

/* ============================================
   DNS MANAGEMENT STYLES
   ============================================ */
.dns-records-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.dns-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.dns-records-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--dark-gray);
}

.dns-records-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dns-record-row {
    display: grid;
    grid-template-columns: 110px 170px 1fr 100px 60px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Make content field much wider inside the Add DNS modal */
#addDNSModal .dns-record-row {
    grid-template-columns: 110px 180px 2fr 110px 60px;
}

#addDNSModal .dns-col-content input {
    font-family: monospace;
}

.dns-record-header {
    background: var(--border-color);
    font-weight: 600;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--dark-gray);
    border: none;
}

.dns-col-type,
.dns-col-name,
.dns-col-content,
.dns-col-ttl,
.dns-col-action {
    display: flex;
    align-items: center;
}

.dns-record-row input,
.dns-record-row select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
}

.dns-record-row input:focus,
.dns-record-row select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dns-record-row .btn-danger {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.dns-record-row .btn-danger:hover {
    background: #fecaca;
}

.dns-help-text {
    font-size: 11px;
    color: var(--medium-gray);
    margin-top: 4px;
    font-style: italic;
}

@media (max-width: 1024px) {
    .dns-record-row {
        grid-template-columns: 80px 120px 1fr 60px 50px;
    }
}

@media (max-width: 768px) {
    .dns-record-row {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .dns-record-header {
        display: none;
    }

    .dns-col-type::before,
    .dns-col-name::before,
    .dns-col-content::before,
    .dns-col-ttl::before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 60px;
        color: var(--dark-gray);
    }

    .dns-col-type,
    .dns-col-name,
    .dns-col-content,
    .dns-col-ttl {
        display: grid;
        grid-template-columns: 60px 1fr;
        gap: 10px;
        align-items: center;
    }

    .dns-record-row input,
    .dns-record-row select {
        padding: 10px;
    }
}


/* ============================================
   ADMIN BALANCE STYLES
   ============================================ */
.balance-container {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

.balance-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

.balance-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-sm i {
    font-size: 14px;
}

.balance-card-content {
    padding: 40px;
}

.balance-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 16px;
}

.balance-info-row:last-child {
    border-bottom: none;
}

.balance-info-row .label {
    font-weight: 600;
    color: var(--dark-gray);
}

.balance-info-row .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
}

.balance-info-row span:not(.label) {
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .balance-card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .balance-card-content {
        padding: 20px;
    }

    .balance-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================
   PACKAGE MANAGEMENT STYLES
   ============================================ */
.packages-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--medium-gray);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--light-gray);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.package-tab-content {
    display: none;
}

.package-tab-content.active {
    display: block;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.data-table input.form-control,
.data-table textarea.form-control {
    width: 100%;
}

.data-table textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* ============================================
   ARTIKEL SECTION STYLES - MODERN OVERLAY
   ============================================ */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.artikel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #e5e7eb;
}

.artikel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.artikel-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.artikel-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.artikel-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artikel-card:hover .artikel-thumbnail-img {
    transform: scale(1.1);
}

.artikel-thumbnail-default {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
}

.artikel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.4s ease;
}

.artikel-card:hover .artikel-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.artikel-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.artikel-category-overlay {
    display: inline-block;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.artikel-title-overlay {
    font-size: 1.3em;
    font-weight: 800;
    color: white;
    margin: 10px 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.artikel-excerpt-overlay {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85em;
    line-height: 1.5;
    margin: 12px 0;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.artikel-meta-overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.artikel-date-overlay {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8em;
    font-weight: 500;
}

.artikel-read-more {
    color: white;
    font-weight: 700;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.artikel-card:hover .artikel-read-more {
    gap: 10px;
}

@media (max-width: 1024px) {
    .artikel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .artikel-thumbnail-wrapper {
        height: 300px;
    }

    .artikel-content-overlay {
        padding: 20px;
    }

    .artikel-title-overlay {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .artikel-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .artikel-thumbnail-wrapper {
        height: 250px;
    }

    .artikel-content-overlay {
        padding: 18px;
    }

    .artikel-title-overlay {
        font-size: 1.1em;
    }

    .artikel-excerpt-overlay {
        font-size: 0.8em;
    }
}

        /* ============================================
   HOSTING DASHBOARD STYLES
   ============================================ */

        .credential-text {
            font-family: 'Courier New', monospace;
            background: #f8f9fa;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.9em;
            border: 1px solid #e9ecef;
        }

        .website-link {
            color: var(--primary-color);
            text-decoration: none;
        }

        .website-link:hover {
            text-decoration: underline;
        }

        .btn-link {
            color: var(--medium-gray);
            background: none;
            border: none;
            cursor: pointer;
            padding: 2px 4px;
            border-radius: 3px;
            transition: background-color 0.2s;
        }

        .btn-link:hover {
            background: #f3f4f6;
            color: var(--dark-gray);
        }

        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--medium-gray);
        }

        .empty-state i {
            font-size: 3em;
            margin-bottom: 15px;
            color: var(--light-gray);
        }

        .empty-state h3 {
            margin-bottom: 10px;
            color: var(--dark-gray);
        }

        .empty-state p {
            margin-bottom: 20px;
        }

        .copy-notification {
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ============================================

/* ============================================
   BADGE STYLES
   ============================================ */
        .badge {
            display: inline-block;
            padding: 4px 8px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            border-radius: 4px;
            margin-left: 5px;
        }

        .badge-success {
            background-color: #d1fae5;
            color: #065f46;
        }

        .badge-warning {
            background-color: #fef3c7;
            color: #92400e;
        }

        .badge-danger {
            background-color: #fee2e2;
            color: #991b1b;
        }

        .badge-info {
            background-color: #dbeafe;
            color: #1e40af;
        }

        /* ============================================
   WEBSITE LIST STYLES
   ============================================ */
        .website-link {
            color: var(--primary-color);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            transition: color 0.2s;
        }

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

        .website-link i {
            font-size: 12px;
        }

/* Hide mobile menu toggle on desktop explicitly */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}