/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/hero-7.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #e0e0e0;
    position: relative;
}

/* Add a dark overlay to improve text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
    z-index: -1;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(16, 124, 16, 0.5);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(16, 124, 16, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #107c10;
}

.nav-brand i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
}

.nav-link:hover {
    background: rgba(16, 124, 16, 0.2);
    color: #107c10;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #107c10, #054b16);
    color: white;
}

.nav-link i {
    margin-right: 8px;
    font-size: 16px;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    position: relative;
    background: rgba(0, 0, 0, 0);
    border-radius: 15px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23107c10' stroke-width='0.5' stroke-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
                    linear-gradient(45deg, transparent 35%, rgba(16, 124, 16, 0.02) 50%, transparent 65%),
                    radial-gradient(circle at 20% 50%, rgba(16, 124, 16, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(32, 201, 151, 0.05) 0%, transparent 50%);
    opacity: 0.6;
    border-radius: 15px;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #107c10;
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 124, 16, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #107c10, #054b16);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 124, 16, 0.2);
    background: rgba(60, 60, 60, 0.95);
    border-color: #107c10;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #107c10, #054b16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    color: #107c10;
    font-weight: bold;
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    z-index: 10;
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Light mode coming soon badge */
.light-mode .coming-soon-badge {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

/* Page-specific styles */
.page-header {
    background: rgba(0, 0, 0, 0);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #107c10;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.content-section h2 {
    color: #107c10;
    margin-bottom: 20px;
}

/* Dashboard mockups */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.dashboard-mockup {
    background: rgba(30, 30, 30, 0.8);
    border: 2px dashed rgba(16, 124, 16, 0.4);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.dashboard-mockup:hover {
    border-color: #107c10;
    background: rgba(40, 40, 40, 0.9);
}

.dashboard-mockup i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #107c10;
}

/* Chat interface */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    height: 400px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    background: rgba(30, 30, 30, 0.9);
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
}

.message.user {
    background: rgba(16, 124, 16, 0.2);
    color: #ffffff;
    margin-left: auto;
    border: 1px solid rgba(16, 124, 16, 0.4);
}

.message.bot {
    background: rgba(70, 70, 70, 0.8);
    color: #ffffff;
    border: 1px solid rgba(100, 100, 100, 0.4);
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
}

.chat-input:focus {
    border-color: #107c10;
    box-shadow: 0 0 0 2px rgba(16, 124, 16, 0.2);
}

.chat-input::placeholder {
    color: rgba(176, 176, 176, 0.6);
}

.send-btn {
    background: linear-gradient(135deg, #107c10, #054b16);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(16, 124, 16, 0.4);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #107c10;
    box-shadow: 0 0 0 2px rgba(16, 124, 16, 0.2);
}

.form-control::placeholder {
    color: rgba(176, 176, 176, 0.6);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #107c10, #054b16);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 124, 16, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(60, 60, 60, 0.9);
    color: #107c10;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.btn-secondary:hover {
    background: rgba(16, 124, 16, 0.1);
    transform: translateY(-2px);
    border-color: #107c10;
    color: #107c10;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(16, 124, 16, 0.5);
    padding: 20px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    color: #b0b0b0;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #107c10;
    text-decoration: underline;
}

.footer-info {
    text-align: center;
}

.footer-info-text {
    margin: 0;
    font-size: 14px;
    color: #b0b0b0;
}

.footer-info-text a {
    color: #107c10;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-info-text a:hover {
    color: #054b16;
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        gap: 12px;
    }
    
    .footer-links {
        gap: 15px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.8);
}

::-webkit-scrollbar-thumb {
    background: #054b16;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #107c10;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-link {
        padding: 10px 15px;
        margin: 2px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* User Settings Dropdown */
.user-settings {
    position: relative;
}

.user-menu {
    position: relative;
}

.user-button {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.user-button:hover {
    background: rgba(16, 124, 16, 0.2);
    color: #107c10;
    transform: scale(1.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 12px;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #107c10, #054b16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.user-details h4 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.user-details p {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

/* User Access Summary Styles */
.user-access-summary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(16, 124, 16, 0.2);
}

.access-summary-item {
    margin-bottom: 8px;
}

.access-summary-item:last-child {
    margin-bottom: 0;
}

.access-summary-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #107c10;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.access-summary-label i {
    font-size: 12px;
}

.access-summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.access-summary-badge {
    background: rgba(16, 124, 16, 0.2);
    color: #107c10;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.access-details-btn {
    width: 100%;
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.access-details-btn:hover {
    background: rgba(16, 124, 16, 0.2);
    border-color: #107c10;
    transform: translateY(-1px);
}

.access-details-btn i {
    font-size: 12px;
}

/* Access Details Modal Styles */
.access-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.access-details-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.access-details-modal {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.access-details-overlay.show .access-details-modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(16, 124, 16, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 124, 16, 0.1);
}

.modal-header h3 {
    color: #107c10;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.modal-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.access-details-section {
    margin-bottom: 25px;
}

.access-details-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: #107c10;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(16, 124, 16, 0.2);
    padding-bottom: 8px;
}

.section-title i {
    font-size: 16px;
}

.global-admin-full-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #000;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.global-admin-full-badge i {
    font-size: 24px;
    color: #ff6b35;
}

.global-admin-full-badge h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.global-admin-full-badge p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.groups-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-details-item {
    background: rgba(16, 124, 16, 0.05);
    border: 1px solid rgba(16, 124, 16, 0.2);
    border-radius: 8px;
    padding: 12px;
}

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

.group-name {
    font-size: 14px;
    font-weight: 600;
    color: #107c10;
    text-transform: capitalize;
}

.group-communities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.community-detail-tag {
    background: rgba(16, 124, 16, 0.2);
    color: #107c10;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: help;
    transition: all 0.2s ease;
}

.community-detail-tag:hover {
    background: rgba(16, 124, 16, 0.3);
    transform: scale(1.02);
}

.direct-communities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* User Access Information Styles */
.user-access-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(16, 124, 16, 0.2);
}

.access-section {
    margin-bottom: 12px;
}

.access-section:last-child {
    margin-bottom: 0;
}

.global-admin-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: subtle-glow 3s infinite;
}

.global-admin-badge i {
    font-size: 14px;
    color: #ff6b35;
}

@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 215, 0, 0.5);
    }
}

.access-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #107c10;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.access-label i {
    font-size: 12px;
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(16, 124, 16, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.group-name {
    font-size: 12px;
    font-weight: 600;
    color: #107c10;
    text-transform: capitalize;
}

/* Group ID hint styles */
.group-id-hint {
    font-size: 10px;
    color: #6c757d;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    cursor: help;
    transition: all 0.2s ease;
}

.group-id-hint:hover {
    background: rgba(16, 124, 16, 0.2);
    color: #107c10;
}

/* Enhanced community name styles */
.community-name-with-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.community-id-hint {
    font-size: 9px;
    color: #6c757d;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 3px;
    border-radius: 2px;
    cursor: help;
    transition: all 0.2s ease;
}

.community-id-hint:hover {
    background: rgba(16, 124, 16, 0.2);
    color: #107c10;
}

.access-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.access-badge.full-access {
    background: linear-gradient(135deg, #107c10, #054b16);
    color: white;
    box-shadow: 0 1px 4px rgba(16, 124, 16, 0.3);
}

.access-badge.limited-access {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.communities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.community-tag {
    background: rgba(16, 124, 16, 0.2);
    color: #107c10;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    cursor: help;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.community-tag:hover {
    background: rgba(16, 124, 16, 0.3);
    transform: scale(1.05);
}

/* Backward compatibility - keep old styles for existing communities display */
.user-communities {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(16, 124, 16, 0.2);
}

.communities-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #107c10;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.communities-label i {
    font-size: 12px;
}

.user-meta {
    padding: 10px 20px;
    background: rgba(16, 124, 16, 0.1);
    border-left: 3px solid #107c10;
}

.user-meta p {
    margin: 0;
    font-size: 12px;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-meta i {
    color: #107c10;
    width: 14px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(16, 124, 16, 0.2);
    margin: 0 15px;
}


.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 12px;
}

.dropdown-item:hover {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
}

.dropdown-item i {
    font-size: 16px;
    width: 16px;
    color: #107c10;
}

/* Light mode styles */
body.light-mode {
    background: url('../images/hero-7.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #212529;
    position: relative;
}

/* Add a light overlay to improve text readability in light mode */
body.light-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

.light-mode .navbar {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(16, 124, 16, 0.5);
}

.light-mode .nav-brand {
    color: #107c10;
}

.light-mode .nav-link {
    color: #495057;
}

.light-mode .nav-link:hover {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
}

.light-mode .nav-link.active {
    background: linear-gradient(135deg, #107c10, #054b16);
    color: white;
}

.light-mode .hero-section {
    background: rgba(0, 0, 0, 0);
}

.light-mode .hero-content h1 {
    color: #212529;
}

.light-mode .hero-description {
    color: #6c757d;
}

.light-mode .feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .feature-card:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px rgba(16, 124, 16, 0.15);
}

.light-mode .feature-card h3 {
    color: #212529;
}

.light-mode .feature-card p {
    color: #6c757d;
}

.light-mode .page-header {
    background: rgba(0, 0, 0, 0);
}

.light-mode .content-section {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
}

.light-mode .dashboard-mockup {
    background: rgba(248, 249, 250, 0.8);
    color: #6c757d;
}

.light-mode .dashboard-mockup:hover {
    background: rgba(255, 255, 255, 0.9);
}

.light-mode .chat-messages {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .message.user {
    background: rgba(16, 124, 16, 0.1);
    color: #212529;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .message.bot {
    background: rgba(255, 255, 255, 0.8);
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .chat-input {
    background: rgba(255, 255, 255, 0.8);
    color: #212529;
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .form-control {
    background: rgba(255, 255, 255, 0.8);
    color: #212529;
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .form-group label {
    color: #212529;
}

.light-mode .btn-secondary {
    background: rgba(248, 249, 250, 0.9);
    color: #107c10;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .footer {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(16, 124, 16, 0.5);
}

.light-mode .footer-content {
    color: #6c757d;
}

.light-mode .footer-info-text {
    color: #6c757d;
}

.light-mode .footer-info-text a {
    color: #107c10;
}

.light-mode .footer-info-text a:hover {
    color: #054b16;
}

.light-mode .footer-links a {
    color: #6c757d;
}

.light-mode .footer-links a:hover {
    color: #107c10;
}

.light-mode .user-button {
    color: #495057;
}

.light-mode .user-dropdown {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .user-details h4 {
    color: #212529;
}

.light-mode .user-details p {
    color: #6c757d;
}

/* Light mode access info styles */
.light-mode .user-access-info {
    border-top: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .global-admin-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25);
}

.light-mode .group-item {
    background: rgba(16, 124, 16, 0.05);
    border: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .access-badge.full-access {
    background: linear-gradient(135deg, #107c10, #054b16);
    color: white;
    box-shadow: 0 1px 4px rgba(16, 124, 16, 0.2);
}

.light-mode .access-badge.limited-access {
    background: rgba(255, 193, 7, 0.15);
    color: #e67e22;
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.light-mode .group-name {
    color: #107c10;
}

/* Light mode group and community ID hint styles */
.light-mode .group-id-hint {
    color: #6c757d;
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .group-id-hint:hover {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
}

.light-mode .community-id-hint {
    color: #6c757d;
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .community-id-hint:hover {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
}

/* Light mode access summary styles */
.light-mode .user-access-summary {
    border-top: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .access-summary-badge {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .access-details-btn {
    background: rgba(16, 124, 16, 0.05);
    color: #107c10;
    border: 1px solid rgba(16, 124, 16, 0.25);
}

.light-mode .access-details-btn:hover {
    background: rgba(16, 124, 16, 0.1);
    border-color: #107c10;
}

/* Light mode modal styles */
.light-mode .access-details-overlay {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
}

.light-mode .access-details-modal {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .modal-header {
    background: rgba(16, 124, 16, 0.05);
    border-bottom: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .modal-close {
    color: #495057;
}

.light-mode .modal-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.light-mode .global-admin-full-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

.light-mode .group-details-item {
    background: rgba(16, 124, 16, 0.03);
    border: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .community-detail-tag {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .community-detail-tag:hover {
    background: rgba(16, 124, 16, 0.15);
}

.light-mode .section-title {
    border-bottom: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .access-label {
    color: #107c10;
}

.light-mode .user-communities {
    border-top: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .communities-label {
    color: #107c10;
}

.light-mode .community-tag {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .community-tag:hover {
    background: rgba(16, 124, 16, 0.15);
}

.light-mode .user-meta {
    background: rgba(16, 124, 16, 0.05);
    border-left: 3px solid #107c10;
}

.light-mode .user-meta p {
    color: #6c757d;
}

.light-mode .user-meta i {
    color: #107c10;
}


.light-mode .dropdown-item {
    color: #495057;
}

.light-mode .dropdown-item:hover {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
}

/* Responsive adjustments for user menu */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .user-settings {
        margin-top: 10px;
        order: 3;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }
}

/* Settings Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dialog-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dialog-container {
    background: rgba(50, 50, 50, 0.95);
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.dialog-overlay.show .dialog-container {
    transform: scale(1);
}

.dialog-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(16, 124, 16, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-header h3 {
    color: #107c10;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.dialog-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dialog-close:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.dialog-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    color: #107c10;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.settings-section h4 i {
    font-size: 18px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.dialog-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(16, 124, 16, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Theme selector in dialog */
.dialog-content .theme-selector {
    display: flex;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    overflow: hidden;
    width: fit-content;
}

.dialog-content .theme-selector input[type="radio"] {
    display: none;
}

.dialog-content .theme-option {
    padding: 10px 20px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    text-align: center;
    min-width: 60px;
}

.dialog-content .theme-option:hover {
    background: rgba(16, 124, 16, 0.1);
}

.dialog-content .theme-selector input[type="radio"]:checked + .theme-option {
    background: #107c10;
    color: white;
}

/* Light mode dialog styles */
.light-mode .dialog-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .dialog-header {
    border-bottom: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .dialog-close {
    color: #495057;
}

.light-mode .dialog-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.light-mode .setting-label {
    color: #495057;
}

.light-mode .dialog-footer {
    border-top: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .dialog-content .theme-selector {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .dialog-content .theme-option {
    color: #495057;
}

.light-mode .dialog-content .theme-selector input[type="radio"]:checked + .theme-option {
    background: #107c10;
    color: white;
}

/* Responsive dialog */
@media (max-width: 768px) {
    .dialog-container {
        width: 95%;
        margin: 20px;
    }
    
    .dialog-header,
    .dialog-content,
    .dialog-footer {
        padding: 15px 20px;
    }
    
    .dialog-content .theme-option {
        padding: 8px 16px;
        min-width: 50px;
    }
}

/* Settings Page Styles */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background: rgba(50, 50, 50, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.settings-section h3 {
    color: #107c10;
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(16, 124, 16, 0.2);
    padding-bottom: 15px;
}

.settings-section h3 i {
    font-size: 18px;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #107c10, #054b16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.user-info h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.user-info p {
    color: #b0b0b0;
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.user-email {
    color: #107c10 !important;
    font-weight: 500;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(16, 124, 16, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-description {
    flex: 1;
    margin-right: 20px;
}

.setting-label {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.setting-help {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.setting-control {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.setting-select {
    min-width: 150px;
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.setting-select:focus {
    border-color: #107c10;
    box-shadow: 0 0 0 2px rgba(16, 124, 16, 0.2);
}

/* Theme selector in settings page */
.settings-section .theme-selector {
    display: flex;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    overflow: hidden;
}

.settings-section .theme-selector input[type="radio"] {
    display: none;
}

.settings-section .theme-option {
    padding: 10px 20px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    text-align: center;
    min-width: 60px;
}

.settings-section .theme-option:hover {
    background: rgba(16, 124, 16, 0.1);
}

.settings-section .theme-selector input[type="radio"]:checked + .theme-option {
    background: #107c10;
    color: white;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(100, 100, 100, 0.4);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #e0e0e0;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #107c10;
    border-color: #107c10;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: white;
}

.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(16, 124, 16, 0.2);
}

/* Light mode settings page */
.light-mode .settings-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .user-profile-card {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .user-info h4 {
    color: #212529;
}

.light-mode .user-info p {
    color: #6c757d;
}

.light-mode .setting-label {
    color: #212529;
}

.light-mode .setting-help {
    color: #6c757d;
}

.light-mode .setting-select {
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .settings-section .theme-selector {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .settings-section .theme-option {
    color: #495057;
}

.light-mode .settings-section .theme-selector input[type="radio"]:checked + .theme-option {
    background: #107c10;
    color: white;
}

.light-mode .toggle-slider {
    background-color: rgba(200, 200, 200, 0.6);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .toggle-slider:before {
    background-color: #495057;
}

.light-mode input:checked + .toggle-slider:before {
    background-color: white;
}

.light-mode .settings-actions {
    border-top: 1px solid rgba(16, 124, 16, 0.2);
}

/* Responsive settings */
@media (max-width: 768px) {
    .settings-container {
        margin: 0 10px;
    }
    
    .settings-section {
        padding: 20px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .setting-description {
        margin-right: 0;
    }
    
    .user-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .settings-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .settings-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Theme Toggle in User Dropdown */
.theme-toggle-dropdown {
    padding: 15px 20px;
}

.dropdown-label {
    display: block;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.theme-selector-dropdown {
    display: flex;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(16, 124, 16, 0.3);
    overflow: hidden;
}

.theme-selector-dropdown input[type="radio"] {
    display: none;
}

.theme-option-dropdown {
    padding: 8px 16px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    text-align: center;
    min-width: 50px;
    flex: 1;
}

.theme-option-dropdown:hover {
    background: rgba(16, 124, 16, 0.1);
}

.theme-selector-dropdown input[type="radio"]:checked + .theme-option-dropdown {
    background: #107c10;
    color: white;
}

/* Light mode dropdown styles */
.light-mode .dropdown-label {
    color: #495057;
}

.light-mode .theme-selector-dropdown {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.light-mode .theme-option-dropdown {
    color: #495057;
}

.light-mode .theme-selector-dropdown input[type="radio"]:checked + .theme-option-dropdown {
    background: #107c10;
    color: white;
}

/* Demo Notice Bar */
.demo-notice-bar {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.demo-notice-content i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.demo-notice-content span {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Light mode demo notice */
.light-mode .demo-notice-bar {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

/* Responsive demo notice */
@media (max-width: 768px) {
    .demo-notice-bar {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .demo-notice-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .demo-notice-content i {
        font-size: 14px;
    }
}

/* PowerBI Dashboard Styles */
.content-section .dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 100%;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #107c10, #054b16);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(16, 124, 16, 0.2);
    border-color: rgba(16, 124, 16, 0.4);
    background: rgba(60, 60, 60, 0.95);
}

.dashboard-card.active {
    border-color: #107c10;
    background: rgba(16, 124, 16, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(16, 124, 16, 0.3);
}

.dashboard-icon {
    font-size: 48px;
    color: #107c10;
    text-align: center;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
}

.dashboard-card p {
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dashboard-actions {
    text-align: center;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.dashboard-actions .btn-secondary {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-actions .btn-secondary i {
    font-size: 16px;
}

.dashboard-viewer {
    margin-top: 30px;
}

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

.dashboard-header h2 {
    color: #107c10;
    font-size: 1.8rem;
    margin: 0;
    flex: 1;
}

.dashboard-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dashboard-header-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dashboard-header-actions .btn i {
    font-size: 14px;
}

.powerbi-container {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.no-dashboard-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #b0b0b0;
    text-align: center;
    padding: 40px;
}

.no-dashboard-selected i {
    font-size: 64px;
    color: #107c10;
    margin-bottom: 20px;
}

.no-dashboard-selected h3 {
    color: #107c10;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-dashboard-selected p {
    font-size: 1.1rem;
    margin: 0;
}

.dashboard-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #b0b0b0;
    text-align: center;
    padding: 40px;
}

.empty-state h3 {
    color: #107c10;
    margin-bottom: 10px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #107c10;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
}

.loading-state i {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dc3545;
    text-align: center;
    padding: 40px;
}

.error-state h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.error-state p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

#powerbi-embed {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* PowerBI iframe styling */
#powerbi-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Light mode PowerBI styles */
.light-mode .dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
}

.light-mode .dashboard-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(16, 124, 16, 0.4);
    box-shadow: 0 5px 20px rgba(16, 124, 16, 0.15);
}

.light-mode .dashboard-card.active {
    background: rgba(16, 124, 16, 0.05);
    border-color: #107c10;
    box-shadow: 0 5px 20px rgba(16, 124, 16, 0.2);
}

.light-mode .dashboard-card h3 {
    color: #212529;
}

.light-mode .dashboard-card p {
    color: #6c757d;
}

.light-mode .dashboard-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.15);
}

.light-mode .empty-state {
    color: #6c757d;
}

.light-mode .empty-state h3 {
    color: #107c10;
}

.light-mode .error-state p {
    color: #6c757d;
}

.light-mode .powerbi-container {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

.light-mode .no-dashboard-selected {
    color: #6c757d;
}

.light-mode .no-dashboard-selected h3 {
    color: #107c10;
}

.light-mode .no-dashboard-selected p {
    color: #6c757d;
}

/* Responsive PowerBI styles */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

@media (max-width: 1024px) and (min-width: 769px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
    
    .dashboard-card {
        padding: 20px;
    }
    
    .dashboard-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .dashboard-card h3 {
        font-size: 1.2rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .dashboard-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-header-actions .btn {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    #powerbi-embed {
        height: 500px !important;
    }
}

/* Role Hierarchy Styles */
.roles-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-details-item {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.role-details-item:hover {
    border-color: #107c10;
    transform: translateY(-1px);
}

.role-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-badge.global-role {
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.role-badge.group-role {
    padding: 16px;
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.1), rgba(32, 201, 151, 0.1));
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 8px;
}

.role-badge.community-role {
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(108, 117, 125, 0.1));
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 8px;
}

.role-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-scope {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.role-access {
    font-size: 0.85rem;
    color: #107c10;
    font-weight: 500;
    margin-top: 4px;
    display: inline-block;
}

/* Communities Summary Styles */
.communities-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-stats {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: rgba(60, 60, 60, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(16, 124, 16, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #107c10;
}

.stat-label {
    font-size: 0.8rem;
    color: #b0b0b0;
    font-weight: 500;
}

/* Light mode role hierarchy styles */
:root.light-mode .role-details-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

:root.light-mode .role-details-item:hover {
    border-color: #007bff;
}

:root.light-mode .role-title {
    color: #212529;
}

:root.light-mode .role-scope {
    color: #6c757d;
    background: rgba(0, 0, 0, 0.05);
}

:root.light-mode .role-access {
    color: #007bff;
}

:root.light-mode .summary-stats {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

:root.light-mode .stat-number {
    color: #007bff;
}

:root.light-mode .stat-label {
    color: #6c757d;
}
