/* ==========================================================================
   Sparbase Comments & Notifications - Frontend Styles
   ========================================================================== */

/* --- 1. ALTE PROXY-BELL ENTFERNEN --- */
.sb-proxy-bell {
    display: none !important;
}

/* --- 2. RUNDER ABO-BUTTON (GLOCKE) IM TEXTFELD --- */
#scn-comment-bell-wrapper {
    position: absolute;
    top: 10px; 
    right: -10px; 
    z-index: 10;
}

.scn-bell-btn {
    background-color: #ffffff;
    color: #999999; 
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0;
}

.dashicons-bell:before {
    font-size: 1.5em;
}

.scn-bell-btn:hover {
    color: #c91f28; 
    border-color: #c91f28;
}

.scn-bell-btn.scn-bell-btn-active {
    color: #ffffff;
    border-color: #c91f28;
    background-color: #c91f28; 
}

.scn-bell-btn .dashicons {
    font-size: 18px;
    line-height: 18px;
    width: 18px;
    height: 18px;
}

.scn-bell-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- 3. FLOATING BELL ICON (GLOCKE IM MENU) --- */
.scn-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #333;
    margin: 0 10px;
    transition: transform 0.2s ease;
}

.scn-bell-wrapper:hover {
    transform: scale(1.1);
}

.scn-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #c91f28;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-sizing: border-box;
}

.scn-badge-active {
    animation: scn-pulse 1.5s infinite;
}

@keyframes scn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 31, 40, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(201, 31, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 31, 40, 0); }
}

/* --- 4. USER DASHBOARD TABELLE --- */
.scn-dashboard-wrapper {
    margin: 30px 0;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    width: 100%;
    border: 1px solid #e5e5e5;
}

.scn-dashboard-wrapper h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.scn-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.scn-dashboard-table th {
    background-color: #fcfcfc;
    color: #555;
    font-weight: bold;
    padding: 12px 15px;
    border-bottom: 2px solid #eee;
    text-align: left;
}

.scn-dashboard-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.scn-dashboard-table tr:last-child td {
    border-bottom: none;
}

.scn-dashboard-table a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.scn-dashboard-table a:hover {
    color: #c91f28;
}

.scn-remove-sub {
    background-color: transparent;
    color: #c91f28;
    border: 1px solid #c91f28;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.scn-remove-sub:hover {
    background-color: #c91f28;
    color: #ffffff;
}

.scn-remove-sub:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- 5. TOGGLE SWITCH FÜR E-MAIL --- */
.scn-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px; 
    height: 24px; 
    vertical-align: middle;
    margin: 0;
}

.scn-toggle-switch input,
.scn-toggle-switch input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.scn-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc !important;
    transition: .4s;
    border-radius: 24px !important;
    display: block !important;
}

.scn-slider:before {
    position: absolute;
    content: "" !important;
    height: 18px !important; 
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .4s;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; 
}

.scn-toggle-switch input:checked + .scn-slider {
    background-color: #c91f28 !important;
}

.scn-toggle-switch input:checked + .scn-slider:before {
    transform: translateX(20px) !important;
}

/* --- 6. NEU: FOLLOW BUTTON (Brechstange gegen Rehub) --- */
.scn-follow-btn {
    background-color: transparent !important;
    color: #c91f28 !important;
    border: 1px solid #c91f28 !important;
    padding: 4px 12px !important;
    border-radius: 15px !important; /* Pillen-Form */
    font-size: 11px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

.scn-follow-btn:hover {
    background-color: #c91f28 !important;
    color: #ffffff !important;
}

/* Aktiver Zustand (Gefolgt) */
.scn-follow-btn.scn-follow-btn-active {
    background-color: #c91f28 !important;
    color: #ffffff !important;
}

.scn-follow-btn.scn-follow-btn-active:hover {
    background-color: #a61720 !important;
    border-color: #a61720 !important;
}

.scn-follow-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}