/* WHMCS Integration Styles */

/* Form Styles */
.whmcs-client-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.whmcs-client-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.whmcs-client-form input[type="text"],
.whmcs-client-form input[type="email"],
.whmcs-client-form input[type="tel"],
.whmcs-client-form input[type="password"],
.whmcs-client-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.whmcs-client-form button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.whmcs-client-form button:hover {
    background-color: #555;
}

/* Dashboard Styles */
.whmcs-dashboard-container {
    display: flex;
    min-height: 600px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar Styles */
.whmcs-dashboard-sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.sidebar-user {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    margin-right: 15px;
}

.user-avatar img {
    border-radius: 50%;
    border: 2px solid #eee;
}

.user-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.user-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

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

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin: 0;
    padding: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.sidebar-menu li.active a {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
    border-left: 3px solid #333;
}

.sidebar-menu li a i {
    margin-right: 10px;
    font-size: 18px;
}

/* Main Content Styles */
.whmcs-dashboard-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
    color: #333;
}

.dashboard-header p {
    margin: 0;
    color: #666;
}

/* KPI Boxes */
.dashboard-kpi-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-box {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.kpi-box:hover {
    transform: translateY(-5px);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.kpi-icon i {
    font-size: 24px;
    color: #333;
}

.kpi-content h3 {
    margin: 0 0 5px;
    font-size: 24px;
    color: #333;
}

.kpi-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Dashboard Cards */
.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.card-action {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.card-action:hover {
    text-decoration: underline;
}

.card-body {
    padding: 20px;
}

/* Table Styles */
.whmcs-table {
    width: 100%;
    border-collapse: collapse;
}

.whmcs-table th {
    background-color: #ffffff;
    color: #555;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.whmcs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

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

.whmcs-table tr:hover {
    background-color: #f5f5f5;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-inactive {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.status-pending {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.status-unpaid {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.status-paid {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

/* Action Buttons */
.action-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #555;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Notice Styles */
.whmcs-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.whmcs-notice-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.whmcs-notice-warning {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
}

.whmcs-notice-error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Client View Styles */
.whmcs-client-view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.client-details {
    margin: 20px 0;
}

.detail-row {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    margin-right: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .whmcs-dashboard-container {
        flex-direction: column;
    }
    
    .whmcs-dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .dashboard-kpi-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .whmcs-dashboard-content {
        padding: 20px;
    }
    
    .whmcs-table {
        display: block;
        overflow-x: auto;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-action {
        margin-top: 10px;
    }
} 