/* Dashboard Styles */
:root {
    --primary-color: #1a3a6c;
    --secondary-color: #d4af37;
    --accent-color: #4a90e2;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --sidebar-width: 250px;
}

/* Layout Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header .logo {
    display: block;
    text-align: center;
}

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

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

.sidebar-menu ul li {
    margin-bottom: 5px;
}

.sidebar-menu ul li a {
    display: block;
    padding: 12px 20px;
    color: #b8c7e0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: var(--secondary-color);
}

.sidebar-menu ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    background-color: var(--light-gray);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

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

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card .stat-change {
    font-size: 14px;
}

.stat-card .stat-change.positive {
    color: #28a745;
}

.stat-card .stat-change.negative {
    color: #dc3545;
}

/* Portfolio Section Styles */
.portfolio-section {
    margin-bottom: 30px;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.portfolio-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}

.portfolio-filters {
    display: flex;
    gap: 10px;
}

.portfolio-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--white);
}

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

.portfolio-table th,
.portfolio-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.portfolio-table th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--primary-color);
}

.portfolio-table tr:hover {
    background-color: #f9f9f9;
}

/* Client Management Styles */
.client-section {
    margin-bottom: 30px;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.client-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}

.client-search {
    display: flex;
    gap: 10px;
}

.client-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

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

.client-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.client-card .client-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.client-card .client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.client-card .client-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.client-card .client-details p {
    font-size: 14px;
    color: #666;
}

.client-card .client-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.client-card .client-stats .stat {
    text-align: center;
}

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

.client-card .client-stats .stat-label {
    font-size: 12px;
    color: #666;
}

.client-card .client-actions {
    display: flex;
    justify-content: space-between;
}

/* Analytics Section Styles */
.analytics-section {
    margin-bottom: 30px;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.analytics-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}

.analytics-filters {
    display: flex;
    gap: 10px;
}

.analytics-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--white);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.analytics-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.analytics-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.chart-container {
    height: 300px;
    background-color: var(--light-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* AI Interface Styles */
.ai-section {
    margin-bottom: 30px;
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ai-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}

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

.ai-model-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ai-model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ai-model-card.active {
    border-color: var(--secondary-color);
}

.ai-model-card .ai-model-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.ai-model-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ai-model-card p {
    font-size: 14px;
    color: #666;
}

.ai-analysis {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.ai-analysis h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.ai-prompt {
    display: flex;
    margin-bottom: 20px;
}

.ai-prompt input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.ai-prompt button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-prompt button:hover {
    background-color: #15305d;
}

.ai-results {
    background-color: var(--light-gray);
    border-radius: 4px;
    padding: 20px;
    min-height: 300px;
}

.placeholder-text {
    color: #888;
    text-align: center;
    margin-top: 120px;
}

/* Content Management Styles */
.content-section {
    margin-bottom: 30px;
}

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

.content-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.content-tabs .tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.content-tabs .tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.content-tabs .tab:hover {
    color: var(--primary-color);
}

.newsletter-form {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

/* Button Styles */
.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        overflow: visible;
    }
    
    .sidebar-header .logo {
        display: none;
    }
    
    .sidebar-menu ul li a span {
        display: none;
    }
    
    .sidebar-menu ul li a i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .client-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-profile {
        margin-top: 15px;
    }
    
    .portfolio-header,
    .client-header,
    .analytics-header,
    .ai-header,
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portfolio-filters,
    .client-search,
    .analytics-filters {
        margin-top: 15px;
        width: 100%;
    }
    
    .client-search input {
        width: 100%;
    }
}
