/* Revealed Contacts Modal - Dark Theme with Better Visibility */
.revealed-contacts-modal {
    max-width: 700px !important;
    width: 90%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #25D366;
}

.modal-header {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border-bottom: 2px solid #25D366;
}

.modal-header h2 {
    color: #25D366;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.modal-close {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #25D366;
    color: white;
    transform: rotate(90deg);
}

.contacts-loading {
    text-align: center;
    padding: 40px;
    color: #e0e0e0;
}

.contacts-loading i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #25D366;
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.5));
}

.no-contacts {
    text-align: center;
    padding: 40px 20px;
}

.no-contacts i {
    font-size: 60px;
    color: #25D366;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.5));
}

.no-contacts h3 {
    color: #25D366;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.no-contacts p {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.contacts-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #25D366;
}

.contacts-header h3 {
    color: #25D366;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.contacts-header p {
    color: #e0e0e0;
    font-size: 14px;
}

.contacts-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #25D366;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 0 10px #25D366;
}

.stat-label {
    font-size: 12px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacts-search {
    position: relative;
    margin-bottom: 20px;
}

.contacts-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #25D366;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(37, 211, 102, 0.5);
}

.contacts-search input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: #1a1a2e;
    border: 2px solid #25D366;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    color: #e0e0e0;
}

.contacts-search input::placeholder {
    color: #666;
}

.contacts-search input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    background: #0f3460;
}

.contacts-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.contacts-list::-webkit-scrollbar {
    width: 5px;
}

.contacts-list::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 10px;
}

.contacts-list::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}

.contacts-list::-webkit-scrollbar-thumb:hover {
    background: #128C7E;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border: 1px solid #25D366;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.1), transparent);
    transition: left 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    margin: 0 0 5px 0;
    color: #25D366;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.contact-username {
    color: #e0e0e0;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-username i {
    color: #25D366;
    font-size: 12px;
}

.contact-number-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    background: #1a1a2e;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #25D366;
}

.contact-number {
    font-family: monospace;
    font-size: 16px;
    flex: 1;
    color: #25D366;
    font-weight: 600;
    letter-spacing: 1px;
}

.copy-btn, .whatsapp-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn {
    color: #e0e0e0;
    background: rgba(37, 211, 102, 0.1);
}

.copy-btn:hover {
    background: #25D366;
    color: white;
    transform: scale(1.1);
}

.whatsapp-btn {
    color: #25D366;
    text-decoration: none;
    background: rgba(37, 211, 102, 0.1);
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    transform: scale(1.1);
}

.contact-date {
    color: #e0e0e0;
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-date i {
    color: #25D366;
    font-size: 12px;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #e0e0e0;
}

/* Contact Details Modal */
.contact-details-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #25D366;
}

.contact-details-modal .modal-header {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
}

.contact-details-modal .modal-header h2 {
    color: #25D366;
}

.contact-details-modal .modal-body {
    color: #e0e0e0;
}

.contact-details-modal .contact-profile img {
    border-color: #25D366 !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3) !important;
}

.contact-details-modal .contact-profile h3 {
    color: #25D366 !important;
}

.contact-detail-item label {
    color: #25D366 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.contact-detail-item div {
    background: #1a1a2e !important;
    border: 1px solid #25D366;
    color: #e0e0e0;
}

/* Toast notification - Dark Theme */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    border: 1px solid;
}

.toast.success {
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.toast.error {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.toast.info {
    border-color: #17a2b8;
    box-shadow: 0 0 20px rgba(23, 162, 184, 0.3);
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: #28a745;
    filter: drop-shadow(0 0 5px rgba(40, 167, 69, 0.5));
}

.toast.error i {
    color: #dc3545;
    filter: drop-shadow(0 0 5px rgba(220, 53, 69, 0.5));
}

.toast.info i {
    color: #17a2b8;
    filter: drop-shadow(0 0 5px rgba(23, 162, 184, 0.5));
}

.toast span {
    color: #e0e0e0;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Additional hover effects */
.contact-item:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contacts-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-number-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-avatar {
        width: 80px;
        height: 80px;
    }
}