/* assets/css/styles.css - Updated styles for role-based LSC Portal */

/* Global Styles */
:root {
    --primary-color: #f57520;
    --primary-dark: #303f9f;
    --primary-light: #c5cae9;
    --accent-color: #ff4081;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider-color: #bdbdbd;
    --background: #f5f5f5;
    --white: #ffffff;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --sidebar-width: 240px;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.75rem;
    margin-top: 1.5em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Common Layout - Header, Sidebar, Content */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: bold;
    display: block;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    /*margin-top: 10px;*/
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--background);
    text-decoration: none;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 5px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--white);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 50;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--divider-color);
}

.user-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.initials {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.sidebar-menu {
    padding: 15px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.sidebar-menu a:hover {
    background-color: var(--background);
    text-decoration: none;
}

.sidebar-menu i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-menu li.active a {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: bold;
    position: relative;
}

.sidebar-menu li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
}

/* Content Area */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--divider-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.content-body {
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 15px 0;
    border-top: 1px solid var(--divider-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left-color: var(--success);
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left-color: var(--danger);
}

.alert-warning {
    background-color: #fff3e0;
    color: #ef6c00;
    border-left-color: var(--warning);
}

.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-left-color: var(--info);
}

.alert i {
    margin-right: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    margin-left: auto;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 450px;
    width: 90%;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 220px;
    /*margin-bottom: 20px;*/
}

.login-form {
    margin-bottom: 20px;
}

.login-footer {
    margin-top: 30px;
    font-size: 0.875rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--divider-color);
}

.data-table th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-badge.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.inactive {
    background-color: #ffebee;
    color: #c62828;
}

/* Dashboard Styles */
.dashboard-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    flex: 1;
    min-width: 200px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    margin-right: 15px;
}

.summary-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.summary-details {
    flex: 1;
}

.summary-details h3 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--text-secondary);
}

.summary-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    background-color: var(--white);
    padding: 15px 20px;
    border-bottom: 1px solid var(--divider-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.card-header h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
}

/* Activity List */
.activity-list {
    list-style: none;
}

.activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-time {
    min-width: 80px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.activity-content {
    flex: 1;
}

.activity-content strong {
    color: var(--primary-color);
}

.activity-details {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Status Summary */
.status-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
}

.status-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 10px;
}

.status-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.status-name {
    font-weight: 500;
}

.status-count {
    font-weight: bold;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 100;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
    }
    
    .header-container {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        margin-right: 15px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-summary {
        flex-direction: column;
    }
    
    .summary-card {
        width: 100%;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* Print Styles */
@media print {
    .header, .sidebar, .footer, .action-buttons, .breadcrumbs {
        display: none;
    }
    
    .content {
        margin-left: 0;
        padding: 0;
    }
    
    .main-container {
        margin-top: 0;
    }
    
    .dashboard-card, .data-table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background-color: white;
    }
}

/* User Management Styles */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.user-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.user-card-header {
    padding: 20px;
    text-align: center;
    background-color: var(--primary-light);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: var(--primary-color);
}

.user-card-body {
    padding: 20px;
    flex: 1;
}

.user-info-item {
    margin-bottom: 10px;
    display: flex;
}

.user-info-label {
    min-width: 80px;
    color: var(--text-secondary);
}

.user-info-value {
    font-weight: 500;
}

.user-card-footer {
    padding: 15px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-around;
}

/* Modal Dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--divider-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Permission Checkboxes */
.permission-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
}

.permission-item {
    padding: 8px;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-item input[type="checkbox"] {
    margin-right: 10px;
}

.permission-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex: 1;
}

.permission-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 5px;
}





/* Navigation */
.nav {
    background-color: var(--primary-dark);
    padding: 0.5rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    position: relative;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    font-weight: bold;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--text-secondary);
}

.btn-success {
    background-color: var(--success);
}

.btn-danger {
    background-color: var(--danger);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Forms */
.form-lead {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input {
    margin-right: 5px;
}





/* Dashboard Summary */
.dashboard-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    flex: 1;
    min-width: 200px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}



/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pagination a:hover {
    background-color: var(--primary-light);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 300px;
}

.search-form input {
    padding-right: 35px;
}

.search-form button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 35px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.search-form button:hover {
    color: var(--primary-color);
}

/* Actions Bar */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Lead Summary in Step 2 */
.lead-summary {
    background-color: var(--primary-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.lead-summary h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.lead-summary p {
    margin: 5px 0;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dashboard-summary {
        flex-direction: column;
    }
    
    .actions-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* assets/css/admin.css - Admin Panel Styles */

/* Admin specific overrides */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background-color: #1a237e;
    padding: 15px 30px;
}

.admin-section {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-form {
    max-width: 100%;
}

/* Chart Container */
.chart-container {
    height: 300px;
    margin-bottom: 30px;
}

/* Admin Dashboard Layout */
.admin-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Top Performers Section */
.top-performers {
    margin-top: 30px;
}

/* Table Filter Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-search {
    position: relative;
    min-width: 250px;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    margin-bottom: 0;
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    width: auto;
}

/* Date Range Controls */
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range label {
    margin-bottom: 0;
}

/* Reporting Section */
.report-section {
    margin-bottom: 40px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-options {
    display: flex;
    gap: 15px;
}

.export-options {
    display: flex;
    gap: 10px;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}