/* View Toggle Styles */
.view-toggle-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

.btn-outline-primary {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.details-view-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

/* Text Filter Styles */
.text-filter-group {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.text-filter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.text-filter-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-input {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    width: 100%;
}

.text-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.text-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.text-filter-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.text-filter-info {
    margin-top: 8px;
}

.text-filter-info small {
    color: #6c757d;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-height: 400px;
    height: auto;
    overflow: visible;
}

.status-card {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.status-indicator.connecting {
    color: #ffc107;
}

.status-indicator.connected {
    color: #28a745;
}

.status-indicator.error {
    color: #dc3545;
}

.qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#qrCode {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.qr-instructions {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.phone-section {
    margin-bottom: 30px;
}

.phone-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#phoneInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#phoneInput:focus {
    outline: none;
    border-color: #007bff;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.phone-instructions {
    color: #666;
    font-size: 0.9rem;
}

.messages-section {
    margin-top: 30px;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.messages-header h2 {
    color: #333;
    font-size: 1.3rem;
}

.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-filter {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.messages-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.message {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    margin: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message:last-child {
    border-bottom: none;
}

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

.message-from {
    font-weight: 600;
    color: #333;
}

.message-time {
    font-size: 0.8rem;
    color: #666;
}

.message-body {
    color: #555;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.from-me {
    background: #dcf8c6;
    margin-left: 20px;
}

.message.from-them {
    background: #ffffff;
    margin-right: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 1.2rem;
}

/* Scrollbar styling */
.messages-container::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Media styles */
.media-container {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.media-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
}

.media-video {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.media-audio {
    width: 100%;
    border-radius: 8px;
}

.media-info {
    padding: 8px 12px;
    background: #e9ecef;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #dee2e6;
}

.media-file {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
}

.media-download {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 5px 0;
}

.media-download:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.media-placeholder {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 10px 0;
}

.media-placeholder i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.download-media-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.download-media-btn:hover {
    background: #218838;
}

.download-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.download-btn, .copy-btn, .forward-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.download-btn:hover {
    background: #5a6268;
}

.copy-btn {
    background: #17a2b8;
}

.copy-btn:hover {
    background: #138496;
}

.forward-btn {
    background: #28a745;
}

.forward-btn:hover {
    background: #218838;
}

.media-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

.download-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.download-btn, .copy-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.download-btn {
    background: #28a745;
    color: white;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.copy-btn {
    background: #17a2b8;
    color: white;
}

.copy-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scroll to bottom button */
.scroll-to-bottom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-bottom:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.messages-section {
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .messages-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .header-actions {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .media-image,
    .media-video {
        max-height: 200px;
    }
}

/* Phone List Styles */
.phone-list {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.phone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    margin: 2px;
    border-radius: 6px;
}

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

.phone-number {
    font-weight: 500;
    color: #333;
}

.remove-phone {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.remove-phone:hover {
    background: #c82333;
}

.input-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.input-actions .btn {
    flex: 1;
    min-width: 120px;
}

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

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

/* Chat Selector Styles */
.chat-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chat-filters {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.chat-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.chat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.chat-item:hover {
    background: #f8f9fa;
}

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

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-name i {
    color: #007bff;
}

.group-badge {
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.chat-last-message {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-id {
    font-size: 10px;
    color: #999;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-chat-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    margin-left: 10px;
    flex-shrink: 0;
}

.add-chat-btn:hover {
    background: #218838;
}

.manual-input {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.manual-input h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
}

.btn-info:hover:not(:disabled) {
    background: #138496;
}

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

/* Save/Load Button Styles */
.btn-success {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

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

/* Chat Context Styles */
.chat-context {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
    font-weight: normal;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

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

.saved-lists {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    transition: background 0.2s;
}

/* Code Selection Modal Styles */
.code-selection-modal .modal-content {
    max-width: 500px;
}

.code-option-group {
    margin-bottom: 20px;
}

.code-option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.code-option-group label:hover {
    background: #f8f9fa;
}

.code-option-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.code-select,
.code-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.code-select:focus,
.code-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.code-select {
    cursor: pointer;
}

.code-selection-error {
    color: #dc3545;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
}

.code-selection-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.code-selection-loading i {
    font-size: 24px;
    margin-right: 10px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
}

.modal-footer .btn-primary {
    background: #007bff;
    color: white;
}

.modal-footer .btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.modal-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.saved-list-item:hover {
    background: #f0f0f0;
}

.list-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Filter Preset Styles */
.saved-preset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.saved-preset-item:hover {
    background: #f0f0f0;
}

.preset-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.preset-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.preset-filters,
.preset-phones,
.preset-date {
    display: inline-block;
}

.preset-actions {
    display: flex;
    gap: 8px;
}

.filter-presets-section {
    margin-bottom: 20px;
}

.list-info strong {
    color: #333;
    font-size: 16px;
}

.list-count {
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.list-date {
    font-size: 12px;
    color: #999;
}

.list-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
}

/* Navigation Menu Styles */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.nav-btn:hover {
    background: #e9ecef;
    color: #333;
}

.nav-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.nav-btn i,
.nav-btn .nav-btn-text {
    pointer-events: none; /* Allow clicks to pass through to button */
}

.nav-btn i {
    font-size: 16px;
    flex-shrink: 0;
}

.nav-btn-text {
    white-space: nowrap;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        gap: 8px;
        padding: 8px;
    }
    
    .nav-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: auto;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 6px;
        padding: 6px;
    }
    
    .nav-btn {
        flex: 1 1 calc(50% - 3px);
        padding: 8px 10px;
        font-size: 12px;
        gap: 6px;
    }
    
    .nav-btn-text {
        font-size: 11px;
    }
    
    .nav-btn i {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .nav-btn-text {
        display: none;
    }
    
    .nav-btn {
        flex: 1 1 calc(25% - 3px);
        padding: 10px;
        gap: 0;
    }
    
    .nav-btn i {
        font-size: 16px;
    }
}

/* Groups Section Styles */
.groups-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
    width: 100%;
}

.groups-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.groups-header h2 {
    margin: 0;
    color: #333;
}

.groups-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px;
    width: 100%;
}

.group-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
    transition: all 0.3s;
}

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

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

.group-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.group-count {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.group-info {
    margin-bottom: 15px;
}

.group-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.group-actions {
    display: flex;
    gap: 8px;
}

.group-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

/* Group Message Section Styles */
.group-message-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.group-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.group-message-header h2 {
    margin: 0;
    color: #333;
}

.group-message-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Emoji Quick Buttons */
.emoji-quick-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.emoji-btn {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.emoji-btn:hover {
    background-color: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.emoji-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
}

.schedule-group {
    margin-top: 20px;
}

.schedule-edit-status {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #e0f3ff;
    color: #0d6efd;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
}

.schedule-edit-status i {
    color: #0b5ed7;
}

.schedule-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    color: #333;
}

.schedule-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.schedule-toggle-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-toggle-buttons {
    display: flex;
    gap: 8px;
}

.schedule-toggle-buttons .btn-sm {
    padding: 4px 12px;
    min-width: 70px;
}

.schedule-hint {
    color: #6c757d;
    font-size: 0.85rem;
}

.schedule-options {
    margin-top: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8faff;
}

.schedule-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.schedule-field {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-field label {
    font-weight: 600;
    color: #444;
}

.schedule-input {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
}

.schedule-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.schedule-section {
    margin-top: 12px;
}

.recurrence-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 8px 0 10px;
}

.recurrence-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
}

.weekly-options {
    margin-top: 8px;
}

.weekly-label {
    font-size: 0.85rem;
    color: #555;
}

.weekly-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.weekly-days label {
    background: #e9ecef;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.weekly-days input {
    margin: 0;
}

.monthly-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 200px;
}

.schedule-recipients {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    color: #444;
}

.schedule-recipients label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.schedule-actions .btn {
    justify-content: center;
}

.schedule-actions #cancelScheduleEditBtn {
    align-self: flex-start;
}

.schedule-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-datetime {
    margin-top: 16px;
}

.schedule-datetime .schedule-row {
    margin-bottom: 0;
}

.schedule-datetime .schedule-row + .schedule-row {
    margin-top: 12px;
}

@media (max-width: 600px) {
    .schedule-primary-actions {
        flex-direction: column;
    }
}

.scheduled-messages-container {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.scheduled-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scheduled-messages-title {
    margin: 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scheduled-messages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.scheduled-message-card {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 12px;
    background: #f8faff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scheduled-message-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.scheduled-message-row strong {
    color: #333;
}

.scheduled-message-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scheduled-empty {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    background: #fefefe;
}

.schedule-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.schedule-status-active {
    background: #d4edda;
    color: #155724;
}

.schedule-status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.schedule-status-error {
    background: #f8d7da;
    color: #721c24;
}

.scheduled-messages-container {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.scheduled-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.scheduled-messages-title {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scheduled-messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scheduled-message-item {
    border: 1px solid #e3e7ed;
    border-radius: 8px;
    padding: 12px;
    background: #f9fbff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scheduled-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.scheduled-message-item.active {
    border-left: 4px solid #007bff;
}

.scheduled-message-item.completed {
    opacity: 0.7;
}

.scheduled-message-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scheduled-message-text {
    font-weight: 600;
    color: #2d3748;
    word-break: break-word;
}

.scheduled-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #5a6474;
}

.scheduled-message-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.scheduled-tag {
    background: #e9ecef;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scheduled-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scheduled-empty {
    text-align: center;
    padding: 16px;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
}

.btn.btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.group-message-results {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.result-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.result-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.result-list {
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.result-item.success {
    border-left: 4px solid #28a745;
}

.result-item.error {
    border-left: 4px solid #dc3545;
}

.result-customer {
    flex: 1;
}

.result-customer-name {
    font-weight: bold;
    color: #333;
}

.result-customer-phone {
    font-size: 12px;
    color: #666;
}

.result-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.result-status.sent {
    background: #d4edda;
    color: #155724;
}

.result-status.failed {
    background: #f8d7da;
    color: #721c24;
}

/* Time Range Filter Styles */
.time-filter-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-filter-section h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-filter-section h3 i {
    color: #007bff;
    font-size: 20px;
}

.time-filter-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.date-time-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-time-group > label {
    font-weight: 600;
    color: #495057;
    display: block;
    font-size: 14px;
}

.date-time-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.date-input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.date-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.time-slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.time-slider-container label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.time-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.time-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
}

.time-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #28a745;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: -6px;
    transition: all 0.3s ease;
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #218838;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #28a745;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.time-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #218838;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.time-display {
    background: #007bff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    color: white;
    text-align: center;
    border: 1px solid #0056b3;
    font-size: 13px;
    min-width: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.filter-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.filter-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Time Presets */
.time-presets {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.time-presets h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-presets h4 i {
    color: #6c757d;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.preset-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.preset-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.preset-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.preset-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Time Range Summary */
.time-range-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #90caf9;
    margin-bottom: 15px;
    text-align: center;
}

.time-range-summary .summary-text {
    font-weight: 600;
    color: #1976d2;
    font-size: 14px;
    margin: 0;
}

.time-range-summary .summary-details {
    font-size: 12px;
    color: #1565c0;
    margin: 4px 0 0 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (min-width: 768px) {
    .time-filter-controls {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .date-time-input {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .date-input {
        flex: 1;
        min-width: 150px;
    }
    
    .time-slider-container {
        flex: 1;
        min-width: 200px;
    }
    
    .preset-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .filter-actions {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .time-filter-controls {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .preset-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Hours Filter Styles */
.hours-filter-group {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
}

.hours-filter-group label {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    display: block;
}

.hours-filter-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-input {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    width: 100%;
}

.hours-input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
}

.hours-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hours-filter-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.hours-filter-info {
    margin-top: 8px;
}

.hours-filter-info small {
    color: #856404;
    font-style: italic;
}

/* Customer Filter Styles */
/* Customer Selector Styles */
.customer-selector-group {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.customer-selector-group label {
    font-weight: 600;
    color: #155724;
    margin-bottom: 8px;
    display: block;
}

.customer-selector-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.customer-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.customer-selector-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.customer-selector-actions button {
    flex: 1;
}

.customer-selector-info {
    margin-top: 8px;
}

.customer-selector-info small {
    color: #155724;
    font-style: italic;
}

/* Customer Filter Styles */
.customer-filter-group {
    margin-top: 15px;
    padding: 15px;
    background: #d1edff;
    border-radius: 6px;
    border: 1px solid #b8daff;
}

.customer-filter-group label {
    font-weight: 600;
    color: #004085;
    margin-bottom: 8px;
    display: block;
}

.customer-filter-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-filter-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.customer-filter-info {
    margin-top: 8px;
}

.customer-filter-info small {
    color: #004085;
    font-style: italic;
}

/* Message Actions Styles */
.message-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.btn-forward {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.btn-forward:hover {
    background: #0056b3;
}

.btn-mark-attendance {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.btn-mark-attendance:hover {
    background: #218838;
}

.btn-confirm-code {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.btn-confirm-code:hover {
    background: #117a8b;
}

/* Forward Modal Styles */
.forward-preview {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.forward-preview h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.message-preview {
    font-size: 13px;
    line-height: 1.4;
}

.preview-sender {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.preview-time {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 8px;
}

.preview-body {
    color: #212529;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.preview-media {
    color: #007bff;
    font-size: 12px;
}

.forward-groups {
    margin-bottom: 20px;
}

.forward-groups h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.group-selection {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
}

.checkbox-label:hover {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 6px 8px;
    margin: 0 -8px;
}

.group-checkbox {
    margin: 0;
}

.forward-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

@media (min-width: 768px) {
    .text-filter-input,
    .hours-filter-input {
        flex-direction: row;
        align-items: center;
    }
    
    .text-input,
    .hours-input {
        flex: 1;
    }
    
    .text-filter-actions,
    .hours-filter-actions {
        flex-shrink: 0;
    }
}

/* Recipients List Styles */
.recipients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.recipients-header-left {
    display: flex;
    gap: 10px;
}

.recipients-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipient-count-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipients-header .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    background: white;
    border: none;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.recipients-header .btn-sm:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.recipients-header .btn-sm i {
    margin-right: 5px;
}

.recipients-list {
    max-height: 350px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.recipients-list::-webkit-scrollbar {
    width: 8px;
}

.recipients-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.recipients-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.recipients-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.recipient-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.recipient-item:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(3px);
}

.recipient-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.recipient-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.recipient-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recipient-name {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.recipient-phone {
    color: #6c757d;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Load More Messages Button */
.load-more-container {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    margin-top: 10px;
}

.load-more-container .btn {
    margin-bottom: 10px;
}

.message-count-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.message-count-info .count {
    font-weight: bold;
    color: #007bff;
}

@media (max-width: 768px) {
    .load-more-container {
        padding: 15px;
    }
}

