.com-servicestatus-groups {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.groups-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.group-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s ease-in-out;
}

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.group-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.group-title a {
    color: #2c3e50;
    text-decoration: none;
}

.group-title a:hover {
    color: #3498db;
}

.group-status {
    margin-left: 10px;
}

.group-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.group-meta {
    font-size: 0.9rem;
    color: #777;
}

.topics-count {
    display: inline-flex;
    align-items: center;
}

.topics-count::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/topic-icon.svg') no-repeat center;
    background-size: contain;
    margin-right: 5px;
    opacity: 0.7;
}

/* Status-specific styles */
.status-ok {
    border-left: 4px solid #2ecc71;
}

.status-limited {
    border-left: 4px solid #f1c40f;
}

.status-failure {
    border-left: 4px solid #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .groups-list {
        grid-template-columns: 1fr;
    }
    
    .group-header {
        flex-direction: column;
    }
    
    .group-status {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Icon styles */
.icon-solve,
.icon-unsolve {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    color: #495057; /* default color */
    transition: color 0.2s ease-in-out;
}

.icon-solve::before {
    font-family: "Font Awesome 5 Free", "FontAwesome";
    content: "\f058";  /* check-circle icon */
    font-weight: 900;
    display: inline-block;
}

.icon-unsolve::before {
    font-family: "Font Awesome 5 Free", "FontAwesome";
    content: "\f057";  /* times-circle icon */
    font-weight: 900;
    display: inline-block;
}

/* Hover effects */
.icon-solve:hover {
    color: #28a745;  /* Bootstrap success color */
}

.icon-unsolve:hover {
    color: #dc3545;  /* Bootstrap danger color */
}

/* Active state */
.icon-solve.active {
    color: #28a745;
}

.icon-unsolve.active {
    color: #dc3545;
}

/* Topic Information Component - Matching Service Status Styling */
.com-servicestatus-topicinformation {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    /* padding: 20px; */
    margin: 70px 0 80px 0;
}

@media (min-width: 601px) {
    .com-servicestatus-topicinformation {
        margin-left: 16.666667%;
    }
}

.com-servicestatus-topicinformation__lead {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.com-servicestatus-topicinformation .groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.com-servicestatus-topicinformation .group-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.com-servicestatus-topicinformation .group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.com-servicestatus-topicinformation .group-header {
    padding: 1.5rem;
    background-color: #0070b4;
    border-bottom: 1px solid #0070b4;
}

.com-servicestatus-topicinformation .group-title {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
}

.com-servicestatus-topicinformation .group-content {
    padding: 1.5rem;
}

.com-servicestatus-topicinformation .grid-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 1rem;
    background: #edf5fa;
    border-radius: 0;
}

@media (max-width: 600px) {
    .com-servicestatus-topicinformation .grid-legend {
        flex-direction: column;
    }
}

.com-servicestatus-topicinformation .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.com-servicestatus-topicinformation .legend-text {
    font-size: 0.9rem;
    color: #666;
}

.com-servicestatus-topicinformation .w4-legend-icon {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    text-align: center;
    line-height: 1;
}

.com-servicestatus-topicinformation .w4-legend-icon.icon-check-circle {
    color: #28a745;
}

.com-servicestatus-topicinformation .w4-legend-icon.icon-times-circle {
    color: #dc3545;
}

.com-servicestatus-topicinformation .topics-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.com-servicestatus-topicinformation .topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.com-servicestatus-topicinformation .topic-item:last-child {
    border-bottom: none;
}

.com-servicestatus-topicinformation .topic-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.com-servicestatus-topicinformation .topic-name {
    font-size: 1rem;
    color: #333;
    hyphens: auto;
}

.com-servicestatus-topicinformation .no-topics {
    font-size: 1rem;
    color: #333;
}

.com-servicestatus-topicinformation .topic-actions {
    margin-left: 1rem;
}

.com-servicestatus-topicinformation .topic-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    /* border: 1px solid transparent; */
    /* border-radius: 0.25rem; */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
    position: relative;
    width: 87px;
}

.com-servicestatus-topicinformation .topic-action-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.com-servicestatus-topicinformation .topic-action-btn .loading-dots {
    display: inline-block;
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.com-servicestatus-topicinformation .topic-action-btn.topic-subscribe {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.com-servicestatus-topicinformation .topic-action-btn.topic-subscribe:hover:not(.loading) {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}

.com-servicestatus-topicinformation .topic-action-btn.topic-unsubscribe {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.com-servicestatus-topicinformation .topic-action-btn.topic-unsubscribe:hover:not(.loading) {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}

.com-servicestatus-topicinformation .topic-mandatory-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #6c757d;
    color: #fff;
    /* border-radius: 0.25rem; */
    font-weight: 500;
    width: 87px;
    display: inline-block;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .com-servicestatus-topicinformation {
        padding: 15px;
    }
    
    .com-servicestatus-topicinformation .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .com-servicestatus-topicinformation .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .com-servicestatus-topicinformation .topic-actions {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* Add to existing Topic Information styles */
.com-servicestatus-topicinformation .topic-login-required {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #ffc107;
    color: #212529;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Message styles */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.btn-close {
    padding: 0.25rem 0.5rem;
    margin: -0.125rem -0.125rem -0.125rem auto;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 0.75;
}

/* Hide menu items when user cannot subscribe to topics */
.dip-can-not-subscribe-to-topics .nav-item .nav-link.dip-hideable-menu-item {
    display: none !important;
}

/* Alternative selector for different menu structures */
.dip-can-not-subscribe-to-topics nav .nav-link.dip-hideable-menu-item {
    display: none !important;
}

/* Hide menu items in header when user cannot subscribe to topics */
.dip-can-not-subscribe-to-topics header .nav-link.dip-hideable-menu-item {
    display: none !important;
}

.dip-can-not-subscribe-to-topics a.dip-hideable-menu-item {
    display: none !important;
}

/* Custom Toast Notification Styles */
.servicestatus-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.servicestatus-toast {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    border: 2px solid;
    border-radius: 0; /* Sharp borders */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.servicestatus-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.servicestatus-toast-content {
    background: #fff;
    border-radius: 0; /* Sharp borders */
}

.servicestatus-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.servicestatus-toast-title {
    margin: 0;
    font-size: 14px;
}

.servicestatus-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.servicestatus-toast-close:hover {
    opacity: 1;
}

.servicestatus-toast-body {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
}

/* Default/Info toast - Light blue */
.servicestatus-toast-info {
    border-color: #87CEEB;
}

.servicestatus-toast-info .servicestatus-toast-header {
    background-color: #E6F3FF;
    color: #0066CC;
}

.servicestatus-toast-info .servicestatus-toast-body {
    background-color: #F0F8FF;
    color: #333;
}

/* Success toast - Light blue (same as default) */
.servicestatus-toast-success {
    border-color: #87CEEB;
}

.servicestatus-toast-success .servicestatus-toast-header {
    background-color: #E6F3FF;
    color: #0066CC;
}

.servicestatus-toast-success .servicestatus-toast-body {
    background-color: #F0F8FF;
    color: #333;
}

/* Warning toast - Yellow */
.servicestatus-toast-warning {
    border-color: #FFD700;
}

.servicestatus-toast-warning .servicestatus-toast-header {
    background-color: #FFF8DC;
    color: #B8860B;
}

.servicestatus-toast-warning .servicestatus-toast-body {
    background-color: #FFFACD;
    color: #333;
}

/* Error toast - Red */
.servicestatus-toast-error {
    border-color: #DC143C;
}

.servicestatus-toast-error .servicestatus-toast-header {
    background-color: #FFE4E1;
    color: #B22222;
}

.servicestatus-toast-error .servicestatus-toast-body {
    background-color: #FFF0F0;
    color: #333;
}

/* Topic Information Component Styling Updates */

/* Mandatory topics - reduced opacity for icon and text */
.com-servicestatus-topicinformation .topic-item.topic-mandatory .w4-legend-icon,
.com-servicestatus-topicinformation .topic-item.topic-mandatory .topic-name {
    opacity: 0.6;
}

/* Updated unsubscribed icon styling - white circle with blue border */
.com-servicestatus-topicinformation .w4-legend-icon.icon-times-circle::before {
    content: ""; /* empty content */
    background-color: #ffffff; /* white background */
    border-radius: 50%;
    border: 2px solid #0070b4; /* dark blue border */
    display: inline-block;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
}

/* Updated legend styling for unsubscribed icon */
.com-servicestatus-topicinformation .grid-legend .w4-legend-icon.icon-times-circle::before {
    content: ""; /* empty content */
    background-color: #ffffff; /* white background */
    border-radius: 50%;
    border: 2px solid #0070b4; /* dark blue border */
    display: inline-block;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
}
.com-servicestatus-groups {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.groups-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.group-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s ease-in-out;
}

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.group-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.group-title a {
    color: #2c3e50;
    text-decoration: none;
}

.group-title a:hover {
    color: #3498db;
}

.group-status {
    margin-left: 10px;
}

.group-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.group-meta {
    font-size: 0.9rem;
    color: #777;
}

.topics-count {
    display: inline-flex;
    align-items: center;
}

.topics-count::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/topic-icon.svg') no-repeat center;
    background-size: contain;
    margin-right: 5px;
    opacity: 0.7;
}

/* Status-specific styles */
.status-ok {
    border-left: 4px solid #2ecc71;
}

.status-limited {
    border-left: 4px solid #f1c40f;
}

.status-failure {
    border-left: 4px solid #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .groups-list {
        grid-template-columns: 1fr;
    }
    
    .group-header {
        flex-direction: column;
    }
    
    .group-status {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Icon styles */
.icon-solve,
.icon-unsolve {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    color: #495057; /* default color */
    transition: color 0.2s ease-in-out;
}

.icon-solve::before {
    font-family: "Font Awesome 5 Free", "FontAwesome";
    content: "\f058";  /* check-circle icon */
    font-weight: 900;
    display: inline-block;
}

.icon-unsolve::before {
    font-family: "Font Awesome 5 Free", "FontAwesome";
    content: "\f057";  /* times-circle icon */
    font-weight: 900;
    display: inline-block;
}

/* Hover effects */
.icon-solve:hover {
    color: #28a745;  /* Bootstrap success color */
}

.icon-unsolve:hover {
    color: #dc3545;  /* Bootstrap danger color */
}

/* Active state */
.icon-solve.active {
    color: #28a745;
}

.icon-unsolve.active {
    color: #dc3545;
}