/**
 * Agent System Pro
 * Filename: dashboard.css
 * Version: 1.0
 * Folder: /plugins/agentsystempro/assets/css/
 * Description: Dashboard styles
 * Developer: Jim Tjernstroem
 * Copyright: Vianke Ltd Jim Tjernstroem 2025
 */

/* Header */
.asp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.asp-header-left {
    display: flex;
    align-items: center;
}

.asp-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    margin-right: 15px;
    cursor: pointer;
}

.asp-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333333;
    margin: 4px 0;
    transition: 0.3s;
}

.asp-logo {
    height: 40px;
}

.asp-logo img {
    height: 100%;
    width: auto;
}

.asp-header-center {
    flex: 1;
    text-align: center;
}

.asp-page-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333333;
}

.asp-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.asp-user-info {
    text-align: right;
}

.asp-user-name {
    display: block;
    font-weight: 600;
    color: #333333;
}

.asp-user-role {
    display: block;
    font-size: 12px;
    color: #6c757d;
}

.asp-header-actions {
    display: flex;
    gap: 10px;
}

.asp-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s;
}

.asp-header-action:hover {
    background: #e9ecef;
    color: #333333;
}

/* Main Content Wrapper */
.asp-main-wrapper {
    display: flex;
    padding-top: 60px;
    min-height: 100vh;
}

/* Content Area */
.asp-content {
    flex: 1;
    padding: 30px;
    margin-left: 250px;
    background: #f5f5f5;
    min-height: calc(100vh - 60px);
}

/* Status Banner */
.asp-status-banner {
    padding: 12px 20px;
    background: #fff3cd;
    color: #856404;
    border-bottom: 1px solid #ffecc7;
    text-align: center;
    font-weight: 500;
}

/* Overview Page */
.asp-overview-page {
    max-width: 1200px;
}

.asp-welcome-section {
    margin-bottom: 30px;
}

.asp-welcome-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.asp-welcome-section p {
    color: #6c757d;
    font-size: 16px;
}

/* Stats Grid */
.asp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.asp-stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.asp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.asp-stat-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.asp-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #007cba;
}

.asp-stat-content h3 {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.asp-stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.asp-stat-warning .asp-stat-icon {
    background: #fff3cd;
}

.asp-stat-warning .asp-stat-icon .dashicons {
    color: #ffc107;
}

.asp-stat-highlight .asp-stat-icon {
    background: #d4edda;
}

.asp-stat-highlight .asp-stat-icon .dashicons {
    color: #28a745;
}

/* Referral Section */
.asp-referral-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.asp-referral-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.asp-referral-box input {
    flex: 1;
}

.asp-help-text {
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
}

/* Quick Actions */
.asp-quick-actions {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.asp-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Coming Soon */
.asp-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.asp-coming-soon-container {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 500px;
}

.asp-coming-soon-icon {
    margin-bottom: 20px;
}

.asp-coming-soon-icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ffc107;
}

.asp-coming-soon-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333333;
}

.asp-coming-soon-text {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 10px;
}

.asp-coming-soon-subtext {
    font-size: 14px;
    color: #999999;
    margin-bottom: 30px;
}

/* Footer */
.asp-footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 20px;
    margin-left: 250px;
}

.asp-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.asp-footer-left,
.asp-footer-right {
    color: #6c757d;
    font-size: 13px;
}

.asp-footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .asp-menu-toggle {
        display: block;
    }
    
    .asp-sidebar {
        transform: translateX(-100%);
    }
    
    .asp-sidebar.active {
        transform: translateX(0);
    }
    
    .asp-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .asp-footer {
        margin-left: 0;
    }
    
    .asp-header-center {
        display: none;
    }
    
    .asp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .asp-footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Agreement Page Styles */
.asp-agreement-page {
    max-width: 900px;
    margin: 0 auto;
}

.asp-agreement-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.asp-agreement-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 30px;
    color: #004085;
}

.asp-agreement-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 30px;
}

.asp-agreement-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.asp-agreement-version {
    color: #6c757d;
    font-size: 14px;
}

.asp-agreement-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.asp-agreement-text {
    line-height: 1.8;
    color: #333;
}

.asp-agreement-text h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.asp-agreement-text p {
    margin-bottom: 12px;
}

.asp-agreement-text strong {
    color: #000;
}

.asp-agreement-acceptance {
    background: #fff3cd;
    border: 1px solid #ffecc7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.asp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.asp-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.asp-checkbox-label span {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.asp-agreement-info {
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    padding: 15px;
    margin-bottom: 30px;
}

.asp-agreement-info ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.asp-agreement-info li {
    margin-bottom: 8px;
    color: #555;
}

.asp-btn-large {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.asp-form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Profile Completion Styles */
.asp-profile-completion {
    max-width: 800px;
    margin: 0 auto;
}

.asp-aid-input-group {
    display: flex;
    gap: 10px;
}

.asp-aid-input-group input {
    flex: 1;
    text-transform: uppercase;
}

.asp-aid-status {
    margin-top: 10px;
    font-size: 14px;
}

.asp-success-text {
    color: #28a745;
}

.asp-error-text {
    color: #dc3545;
}

.asp-loading-text {
    color: #6c757d;
}

/* Scrollbar for agreement text */
.asp-agreement-content::-webkit-scrollbar {
    width: 8px;
}

.asp-agreement-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.asp-agreement-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.asp-agreement-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
