/* 
 * ALERT.CSS 
 * Styling khusus untuk Alert Center & Watchlist
 * Namespace: .tm-alert
 */

.tm-alert {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

@media (min-width: 992px) {
    .tm-alert {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar Navigation */
.tm-alert .alert-sidebar {
    flex-shrink: 0;
    width: 100%;
    background: var(--surface-new);
    border: 1px solid var(--border-new);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 992px) {
    .tm-alert .alert-sidebar {
        width: 260px;
        position: sticky;
        top: 24px;
    }
}

.tm-alert .alert-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.tm-alert .alert-nav-item i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
}

.tm-alert .alert-nav-item:hover {
    background: var(--surface-hover);
    color: var(--text-main);
}

.tm-alert .alert-nav-item.active {
    background: var(--primary-light);
    color: var(--primary-main);
    border-left-color: var(--primary-main);
}

/* Main Content Area */
.tm-alert .alert-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Styling inside Alert Content */
.tm-alert .alert-card {
    background: var(--surface-new);
    border: 1px solid var(--border-new);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tm-alert .alert-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-new);
    background: var(--bg-main);
}

.tm-alert .alert-card-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-alert .alert-card-body {
    padding: 24px;
}

/* Tag/Chip Input for Watchlist */
.tm-alert .tag-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--border-new);
    border-radius: 8px;
    background: var(--surface-new);
    transition: all 0.2s ease;
}

.tm-alert .tag-container:focus-within {
    border-color: var(--primary-main);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tm-alert .tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-main);
    background: var(--primary-light);
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.05);
}

.tm-alert .tag-remove {
    margin-left: 6px;
    cursor: pointer;
    color: var(--primary-main);
    opacity: 0.7;
}

.tm-alert .tag-remove:hover {
    opacity: 1;
}

.tm-alert .tag-input {
    border: none;
    outline: none;
    flex-grow: 1;
    min-width: 120px;
    background: transparent;
    color: var(--text-main);
    font-size: 0.9rem;
    padding: 4px;
}

/* Bell Dropdown Styling */
.alert-dropdown-menu {
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--border-new);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.alert-dropdown-header {
    padding: 12px 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-new);
    background: var(--bg-main);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-new);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-main);
    transition: background 0.2s;
}

.alert-dropdown-item:last-child {
    border-bottom: none;
}

.alert-dropdown-item:hover {
    background: var(--surface-hover);
}

.alert-dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-new);
    background: var(--bg-main);
}
