/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css');

/* === ROOT VARIABLES === */
:root {
    --primary-color: #5D3EBC; /* A nice purple */
    --primary-color-light: #7E57C2;
    --secondary-color: #039BE5; /* A vibrant blue */
    --background-color: #F4F7FC;
    --text-color: #333;
    --text-color-light: #67748E;
    --card-background: #FFFFFF;
    --border-color: #E2E8F0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 12px;
    --sidebar-width: 280px;
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* === FORM STYLES === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 62, 188, 0.15);
}

/* === BUTTON STYLES === */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(93, 62, 188, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #0288D1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(3, 155, 229, 0.2);
}

.btn-light {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background-color: #f8f9fa;
}

/* === LOGIN PAGE SPECIFIC STYLES === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-card .logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-card .logo .las {
    margin-right: 0.5rem;
}

.login-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.login-card .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-card .alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.login-card .alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.login-card .form-group {
    text-align: left;
}

/* === MAIN LAYOUT STYLES === */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    transition: width 0.3s ease;
    z-index: 100;
}

.sidebar-brand {
    text-align: center;
    padding-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.sidebar-brand .las {
    font-size: 2.2rem;
    vertical-align: middle;
}

.sidebar-menu ul {
    list-style-type: none;
    padding: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-bottom: 0.5rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-menu a .las {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.header-title p {
    color: var(--text-color-light);
    font-size: 1rem;
}

.user-wrapper {
    display: flex;
    align-items: center;
}

.user-wrapper img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.user-wrapper h4 {
    font-weight: 500;
    margin: 0;
}

.user-wrapper small {
    color: var(--text-color-light);
}

/* === DASHBOARD CARDS === */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-card-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.summary-card-info p {
    color: var(--text-color-light);
    margin: 0;
}

.summary-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* === CHARTS === */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.charts-container .card {
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    position: relative;
    flex-grow: 1;
    height: 350px; /* Give chart a specific height */
}

/* === TABLE STYLES === */
.table-container {
    overflow-x: auto; /* For responsive tables */
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table thead th {
    font-weight: 600;
    background-color: #F8F9FA;
    color: var(--text-color-light);
}

.table tbody tr:hover {
    background-color: #F8F9FA;
}

.table .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    vertical-align: middle;
}

.table .status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-verified, .status-active {
    background-color: var(--success-color);
    color: #fff;
}

.status-pending, .status-inactive {
    background-color: #ffc107;
    color: #333;
}

.table .actions a {
    color: var(--text-color-light);
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

.table .actions a:hover {
    color: var(--primary-color);
}

/* === PAGE HEADER === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* === AVATAR STYLES === */
.avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid var(--card-background);
}

.avatar-sm {
    width: 30px;
    height: 30px;
}

.avatar-md {
    width: 45px;
    height: 45px;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-xl {
    width: 120px;
    height: 120px;
    border-width: 4px;
}

/* === TEAM DETAILS PAGE === */
.team-details-card .card-body {
    padding-top: 2rem;
}

.chat-history-container {
    height: 500px; /* Or other desired height */
    overflow-y: auto;
    padding-right: 1rem;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.chat-message-content {
    flex: 1;
} 