/* LC Dashboard Styles */

.lc-dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
}

.lc-dashboard-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lc-dashboard-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lc-dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.lc-dashboard-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f0f0f0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2c5aa0;
}

.lc-dashboard-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lc-dashboard-user-info h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.lc-dashboard-user-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.lc-dashboard-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.lc-dashboard-btn-logout {
    background: #dc3545;
    color: white !important;
    padding: 10px 16px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lc-dashboard-btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.lc-dashboard-container {
    display: flex;
    gap: 30px;
    min-height: 600px;
}

/* Sidebar Navigation */
.lc-dashboard-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.lc-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lc-dashboard-nav-item,
.lc-dashboard-nav-item:visited {
    color: #333;
    text-decoration: none;
}

.lc-dashboard-nav-item:hover {
    background: #f0f4ff;
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.lc-dashboard-nav-item:visited:hover {
    color: #2c5aa0;
}

.lc-dashboard-nav-item.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
    font-weight: 600;
}

.lc-dashboard-nav-item.active:visited {
    color: white;
}

.lc-dashboard-nav-item .icon,
.lc-dashboard-nav-item .lc-dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    text-align: center;
    color: #666;
}

.lc-dashboard-nav-item .lc-dashboard-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.lc-dashboard-nav-item:hover .lc-dashboard-icon {
    color: #2c5aa0;
}

.lc-dashboard-nav-item.active .lc-dashboard-icon {
    color: white;
}

/* Submenu Toggle */
.lc-dashboard-submenu-toggle {
    margin-left: auto;
    font-size: 12px;
    display: inline-block;
}

/* Submenu Styling */
.lc-dashboard-submenu {
    background: #f9f9f9;
    border-left: 2px solid #2c5aa0;
    margin-top: 5px;
    margin-bottom: 5px;
}

.lc-dashboard-nav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 24px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    margin-bottom: 3px;
}

.lc-dashboard-nav-subitem:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #2c5aa0;
}

.lc-dashboard-nav-subitem.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
    font-weight: 600;
}

.lc-dashboard-nav-subitem .lc-dashboard-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2c5aa0;
}

.lc-dashboard-nav-subitem .lc-dashboard-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.lc-dashboard-nav-subitem:hover .lc-dashboard-icon {
    color: #2c5aa0;
}

.lc-dashboard-nav-subitem.active .lc-dashboard-icon {
    color: white;
}

/* Main Content Area */
.lc-dashboard-main {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lc-dashboard-section {
    display: none;
}

.lc-dashboard-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lc-dashboard-section h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #333;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 15px;
}

.lc-dashboard-section p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.lc-dashboard-intro {
    background: #f5f7ff;
    padding: 16px 18px;
    border-left: 5px solid #2c5aa0;
    border-radius: 4px;
    margin: 0 0 25px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    display: block;
}

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

.lc-dashboard-stat-card {
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.lc-dashboard-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stat-icon {
    line-height: 1;
    flex-shrink: 0;
    color: #2c5aa0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
    color: #2c5aa0;
}

.stat-content h3 {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.stat-number {
    margin: 8px 0 0 0;
    font-size: 32px;
    font-weight: 700;
    color: #2c5aa0;
}

/* List Styles */
.lc-dashboard-list {
    margin-top: 20px;
}

.lc-dashboard-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #2c5aa0;
    transition: all 0.3s ease;
}

.lc-dashboard-item:hover {
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
}

.lc-dashboard-item-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.lc-dashboard-item-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.lc-dashboard-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lc-dashboard-item-actions {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.lc-dashboard-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
}

.lc-dashboard-btn-primary {
    background: #2c5aa0;
    color: white !important;
}

.lc-dashboard-btn-primary:hover {
    background: #1e3f6f;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.lc-dashboard-btn-secondary {
    background: #f0f4ff;
    color: #2c5aa0;
    border: 1px solid #2c5aa0;
}

.lc-dashboard-btn-secondary:hover {
    background: #2c5aa0;
    color: white;
}

.lc-dashboard-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: white !important;
}

/* Status Badge */
.lc-dashboard-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
    max-width: 180px;
    min-height: 20px;
    line-height: 1.4;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Account Settings Styling */
.lc-dashboard-account-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lc-dashboard-account-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.lc-dashboard-account-item:hover {
    border-color: #2c5aa0;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
}

.lc-dashboard-account-item h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.lc-dashboard-account-item p {
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #666;
}

/* Back Link */
.lc-dashboard-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2c5aa0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lc-dashboard-back-link:hover {
    color: #1e3f6f;
}

/* Account Subsection */
.lc-dashboard-account-subsection {
    animation: slideIn 0.3s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Styling */
.lc-dashboard-form {
    max-width: 500px;
    margin: 20px 0;
}

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

.lc-dashboard-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.lc-dashboard-form input[type="text"],
.lc-dashboard-form input[type="email"],
.lc-dashboard-form input[type="password"],
.lc-dashboard-form textarea,
.lc-dashboard-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lc-dashboard-form input[type="text"]:focus,
.lc-dashboard-form input[type="email"]:focus,
.lc-dashboard-form input[type="password"]:focus,
.lc-dashboard-form textarea:focus,
.lc-dashboard-form select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* Checkbox Group */
.lc-dashboard-form .checkbox-group {
    margin-bottom: 15px;
}

.lc-dashboard-form .checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.lc-dashboard-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

/* Message Display */
.lc-dashboard-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.lc-dashboard-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lc-dashboard-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.lc-dashboard-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Empty State */
.lc-dashboard-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lc-dashboard-empty p {
    margin: 0;
}

.loading {
    text-align: center;
    color: #999;
}

/* Avatar Section */
.lc-dashboard-avatar-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.lc-dashboard-avatar-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.lc-dashboard-avatar-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.lc-dashboard-avatar-preview {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.avatar-display {
    flex-shrink: 0;
}

.avatar-display img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #2c5aa0;
    object-fit: cover;
}

.avatar-upload-form {
    flex: 1;
    max-width: 400px;
}

.avatar-upload-form .form-group {
    margin-bottom: 15px;
}

.avatar-upload-form #avatar-file {
    padding: 10px 12px;
    border: 2px dashed #2c5aa0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-form #avatar-file:hover {
    border-color: #1e3f6f;
    background: #f5f7ff;
}

.avatar-upload-form .file-info {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #999;
}

.lc-dashboard-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 30px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lc-dashboard-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lc-dashboard-header-actions {
        width: 100%;
    }
    
    .lc-dashboard-btn-logout {
        width: 100%;
        text-align: center;
    }
    
    .lc-dashboard-avatar-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatar-upload-form {
        width: 100%;
        max-width: 100%;
    }
    
    .lc-dashboard-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .lc-dashboard-sidebar {
        width: 100%;
    }
    
    .lc-dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .lc-dashboard-nav-item {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
    
    .lc-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lc-dashboard-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lc-dashboard-item-actions {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .lc-dashboard-wrapper {
        padding: 10px;
    }
    
    .lc-dashboard-main {
        padding: 15px;
    }
    
    .lc-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .lc-dashboard-nav-item {
        flex: 1;
        min-width: 100%;
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .lc-dashboard-section h2 {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}
