/* ============================================
   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-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.login-box {
    background: white;
    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-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;
}

.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: white;
    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;
    gap: 10px;
}

.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: var(--dark-gray);
    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;
}

.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);
}

.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.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;
}

.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);
}

/* ============================================
   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);
}

.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 {
        width: 70px;
    }

    .sidebar-header h2 {
        display: none;
    }

    .sidebar-menu .menu-item span {
        display: none;
    }

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

    .menu-item {
        padding: 12px;
        justify-content: center;
    }

    .menu-item i {
        width: auto;
    }

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

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

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

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

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

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

    .data-table {
        font-size: 12px;
    }

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

    .modal {
        width: 95%;
    }

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

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }

    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .content {
        padding: 15px;
    }

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

    .dashboard-card {
        padding: 15px;
    }

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

    .login-box {
        padding: 20px;
    }

    .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: 20px;
    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: 100px 150px 1fr 80px 60px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.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;
    }
}

