/* Base Styles */
:root {
    --primary-color: #0d3b66;
    --secondary-color: #0d8abc;
    --accent-color: #f4a261;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-shadow: var(--shadow);
    z-index: 100;
}

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

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

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

.sidebar-menu li {
    padding: 10px 20px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-menu li:hover, .sidebar-menu li.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
}

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

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
}

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

.header-search {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 20px;
    padding: 8px 15px;
    width: 300px;
}

.header-search i {
    color: var(--gray-color);
    margin-right: 10px;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

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

.btn-create {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-create i {
    margin-right: 5px;
}

.btn-create:hover {
    background-color: #e67e22;
}

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

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-profile i {
    margin-left: 5px;
    font-size: 12px;
    color: var(--gray-color);
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px;
}

.dashboard-content h1 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

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

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: white;
}

.stat-icon.clients {
    background-color: var(--primary-color);
}

.stat-icon.generations {
    background-color: var(--accent-color);
}

.stat-icon.texts {
    background-color: var(--success-color);
}

.stat-icon.images {
    background-color: var(--secondary-color);
}

.stat-info h3 {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

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

.card-header h2 {
    font-size: 18px;
    color: var(--dark-color);
}

.view-all {
    color: var(--secondary-color);
    font-size: 14px;
}

.btn-add {
    background-color: var(--light-color);
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add i {
    margin-right: 5px;
}

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

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background-color: var(--light-color);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
}

.activity-icon.text-gen {
    background-color: var(--success-color);
}

.activity-icon.image-gen {
    background-color: var(--secondary-color);
}

.activity-icon.social {
    background-color: var(--primary-color);
}

.activity-icon.assistant {
    background-color: var(--accent-color);
}

.activity-details {
    flex-grow: 1;
}

.activity-details h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.activity-details p {
    font-size: 13px;
    color: var(--gray-color);
    margin-bottom: 3px;
}

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

.activity-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.activity-status.completed {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.activity-status.pending {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

/* Social Media */
.social-accounts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-account {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.social-account:hover {
    background-color: var(--light-color);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-details {
    flex-grow: 1;
}

.social-details h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.social-details p {
    font-size: 13px;
    color: var(--gray-color);
}

.social-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.social-status.active {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.social-status.inactive {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--gray-color);
}

/* Quick Actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.action-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-item h4 {
    font-size: 14px;
    font-weight: 500;
}

/* Client Overview */
.client-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.client-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.client-item:hover {
    background-color: var(--light-color);
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.client-details {
    flex-grow: 1;
}

.client-details h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.client-details p {
    font-size: 13px;
    color: var(--gray-color);
}

.btn-client-action {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--gray-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-client-action:hover {
    background-color: var(--light-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-header h2, .sidebar-menu li a span, .sidebar-footer a span {
        display: none;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .header-search {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-search {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
