/* ========================================
   WOLF Bot Manager - Elegant Minimal Theme
   ======================================== */

:root {
    /* Primary Colors - Soft & Elegant */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    
    /* Status Colors - Muted */
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --info: #4299e1;
    
    /* Background Colors - Soft Dark */
    --bg-main: #1a1f2e;
    --bg-secondary: #232936;
    --card-bg: #2d3748;
    --bg-hover: #3a4556;
    
    /* Text Colors */
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    /* Border Colors */
    --border-color: #3a4556;
    --border-light: #4a5568;
}

/* ========================================
   Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Cairo', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* ========================================
   Layout Components
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.min-h-screen {
    min-height: 100vh;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Card Component
   ======================================== */

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 28px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border-color: var(--border-light);
}

/* ========================================
   Button Styles - Minimal & Clean
   ======================================== */

.btn {
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.btn.w-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #38a169;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #dd6b20;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* ========================================
   Form Elements - Clean & Minimal
   ======================================== */

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

select.form-input {
    cursor: pointer;
}

/* ========================================
   Alert Components - Subtle
   ======================================== */

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid;
    line-height: 1.6;
}

.alert-error {
    background: rgba(245, 101, 101, 0.08);
    border-color: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}

.alert-success {
    background: rgba(72, 187, 120, 0.08);
    border-color: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.alert-info {
    background: rgba(66, 153, 225, 0.08);
    border-color: rgba(66, 153, 225, 0.2);
    color: #63b3ed;
}

.alert-warning {
    background: rgba(237, 137, 54, 0.08);
    border-color: rgba(237, 137, 54, 0.2);
    color: #f6ad55;
}

/* ========================================
   Badge Components - Minimal
   ======================================== */

.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.badge-danger {
    background: rgba(245, 101, 101, 0.15);
    color: #fc8181;
    border: 1px solid rgba(245, 101, 101, 0.25);
}

.badge-success {
    background: rgba(72, 187, 120, 0.15);
    color: #68d391;
    border: 1px solid rgba(72, 187, 120, 0.25);
}

.badge-warning {
    background: rgba(237, 137, 54, 0.15);
    color: #f6ad55;
    border: 1px solid rgba(237, 137, 54, 0.25);
}

.badge-info {
    background: rgba(66, 153, 225, 0.15);
    color: #63b3ed;
    border: 1px solid rgba(66, 153, 225, 0.25);
}

/* ========================================
   Bot Cards - Clean Design
   ======================================== */

.bot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem;
    transition: all 0.2s ease;
}

.bot-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.bot-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.bot-status.active {
    background: rgba(72, 187, 120, 0.12);
    color: #68d391;
    border: 1px solid rgba(72, 187, 120, 0.25);
}

.bot-status.inactive {
    background: rgba(160, 174, 192, 0.12);
    color: #a0aec0;
    border: 1px solid rgba(160, 174, 192, 0.25);
}

.bot-status.connected {
    background: rgba(66, 153, 225, 0.12);
    color: #63b3ed;
    border: 1px solid rgba(66, 153, 225, 0.25);
}

/* ========================================
   Message Cards - Clean
   ======================================== */

.message-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.message-card.active {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.03);
}

.message-card:hover {
    background: var(--card-bg);
    border-color: var(--border-light);
}

.message-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   User Cards - Clean
   ======================================== */

.user-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.user-card.active {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.03);
}

.user-card.expired {
    border-color: var(--danger);
    background: rgba(245, 101, 101, 0.03);
}

.user-card:hover {
    background: var(--card-bg);
    border-color: var(--border-light);
}

/* ========================================
   Subscription Info - Compact Version
   ======================================== */

.subscription-info-compact {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
}

.subscription-info-compact.trial {
    background: rgba(237, 137, 54, 0.04);
    border-color: rgba(237, 137, 54, 0.25);
}

.subscription-info-compact.expiring {
    background: rgba(245, 101, 101, 0.04);
    border-color: rgba(245, 101, 101, 0.25);
}

.subscription-info-compact.active {
    background: rgba(72, 187, 120, 0.04);
    border-color: rgba(72, 187, 120, 0.25);
}

/* ========================================
   Subscription Info - Original (Keep for compatibility)
   ======================================== */

.subscription-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.subscription-info.trial {
    background: rgba(237, 137, 54, 0.04);
    border-color: rgba(237, 137, 54, 0.25);
}

.subscription-info.expiring {
    background: rgba(245, 101, 101, 0.04);
    border-color: rgba(245, 101, 101, 0.25);
}

.subscription-info.active {
    background: rgba(72, 187, 120, 0.04);
    border-color: rgba(72, 187, 120, 0.25);
}

/* ========================================
   Stats Cards - Elegant
   ======================================== */

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   Text Utilities
   ======================================== */

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.gradient-text {
    color: var(--accent-primary);
    font-weight: 600;
}

.link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ========================================
   Spacing Utilities
   ======================================== */

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }

.mr-2 { margin-right: 0.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }

.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }

.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }

/* ========================================
   Flex Utilities
   ======================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* ========================================
   Grid Utilities
   ======================================== */

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:w-auto { width: auto; }
    .md\:w-80 { width: 20rem; }
    .md\:flex-none { flex: none; }
    .md\:min-w-\[140px\] { min-width: 140px; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ========================================
   Width & Height Utilities
   ======================================== */

.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }

/* ========================================
   Text Utilities
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1.5; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; line-height: 1.6; }
.text-2xl { font-size: 1.5rem; line-height: 1.5; }
.text-3xl { font-size: 1.875rem; line-height: 1.4; }
.text-4xl { font-size: 2.25rem; line-height: 1.3; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.tracking-widest { letter-spacing: 0.1em; }

/* ========================================
   Border Utilities
   ======================================== */

.border-t { border-top: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 10px; }
.rounded { border-radius: 8px; }

/* ========================================
   Display Utilities
   ======================================== */

.hidden { display: none; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

/* ========================================
   Color Utilities - Soft Palette
   ======================================== */

.text-blue-400 { color: #63b3ed; }
.text-purple-400 { color: #b794f4; }
.text-green-400 { color: #68d391; }
.text-cyan-400 { color: #4fd1c5; }
.text-yellow-400 { color: #f6ad55; }
.text-orange-300 { color: #fbd38d; }
.text-orange-400 { color: #f6ad55; }
.text-red-400 { color: #fc8181; }
.text-white { color: #ffffff; }

.bg-black { background-color: #000000; }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }

/* ========================================
   Animations - Subtle
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes highlight {
    0% { background-color: rgba(102, 126, 234, 0.15); }
    100% { background-color: transparent; }
}

.card { animation: fadeIn 0.25s ease-out; }
.updated { animation: highlight 0.4s ease-out; }

/* ========================================
   WhatsApp Float Button
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(37, 211, 102, 0.85);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    background: rgba(32, 186, 90, 0.95);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
}

/* ========================================
   Flex Column Utilities
   ======================================== */

.flex-col { flex-direction: column; }

/* ========================================
   Notification Toast - Modern & Elegant
   ======================================== */

.notification-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid;
    min-width: 300px;
    max-width: 500px;
}

.notification-success {
    background: rgba(72, 187, 120, 0.15);
    border-color: rgba(72, 187, 120, 0.4);
    color: #68d391;
}

.notification-error {
    background: rgba(245, 101, 101, 0.15);
    border-color: rgba(245, 101, 101, 0.4);
    color: #fc8181;
}

.notification-info {
    background: rgba(66, 153, 225, 0.15);
    border-color: rgba(66, 153, 225, 0.4);
    color: #63b3ed;
}

.notification-message {
    flex: 1;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
}


/* ========================================
   Tabs Styles - Minimal & Professional
   ======================================== */

.tabs-container {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0;
    width: 100%;
}

.tab-button {
    flex: 1;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.02em;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-button:hover::after {
    transform: scaleX(0.3);
}

.tab-button.active {
    color: var(--text-primary);
}

.tab-button.active::after {
    transform: scaleX(1);
}

/* ========================================
   Message Group Styles
   ======================================== */

.btn-toggle-details {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-toggle-details:hover {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-toggle-details .toggle-icon {
    transition: transform 0.2s ease;
}

.btn-toggle-details .toggle-icon.rotated {
    transform: rotate(180deg);
}

.group-messages-list {
    background: var(--bg-main);
    border-radius: 8px;
    padding: 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.group-messages-list.hidden {
    display: none;
}

.group-message-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.2s ease;
}

.group-message-row:last-child {
    border-bottom: none;
}

.group-message-row:hover {
    background: var(--bg-secondary);
}

.group-message-row .message-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.group-message-row .message-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.group-message-row .message-target {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-message-row .target-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.group-message-row .target-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.group-message-row .message-text {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0.25rem 0;
}

.group-message-row .message-interval {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-message-row .interval-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.group-message-row .interval-value {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    padding: 0.125rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.group-message-row .message-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.group-message-row .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.group-message-row .stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.group-message-row .stat-value {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Responsive for tablets */
@media (max-width: 1024px) {
    .group-message-row {
        grid-template-columns: 40px 1fr;
        gap: 0.75rem;
    }
    
    .group-message-row .message-stats {
        grid-column: 2;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1.5rem;
        margin-top: 0.5rem;
        min-width: auto;
    }
    
    .group-message-row .stat-item {
        flex-direction: row;
    }
}

/* Responsive for mobile */
@media (max-width: 640px) {
    .group-message-row {
        padding: 0.875rem;
    }
    
    .group-message-row .message-number {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
    
    .group-message-row .target-value {
        font-size: 0.9375rem;
    }
    
    .group-message-row .message-stats {
        flex-direction: column;
        gap: 0.375rem;
    }
}

.group-message-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.group-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.group-message-number {
    font-weight: 600;
    color: var(--accent-primary);
}

.remove-message-btn {
    background: var(--danger);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-message-btn:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

.target-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.target-type-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.target-type-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.target-type-option label {
    cursor: pointer;
    color: var(--text-primary);
}

.message-group-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.message-group-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.message-group-info h4 {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.message-group-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.message-group-actions {
    display: flex;
    gap: 0.5rem;
}

.message-list {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.message-list-item {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.message-list-item:last-child {
    border-bottom: none;
}

.message-list-item .message-target {
    color: var(--accent-primary);
    font-weight: 500;
}

.message-list-item .message-interval {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Modal scrolling */
#messageGroupModal .card {
    max-height: 85vh;
    overflow-y: auto;
}

#messageGroupModal .card::-webkit-scrollbar {
    width: 8px;
}

#messageGroupModal .card::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

#messageGroupModal .card::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

#messageGroupModal .card::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}
