.input-area .form-control:focus,
.input-box input.form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #ccc;
}

.input-area .form-control:focus {
    border-color: #ff4081;
    box-shadow: 0 0 0 0.2rem rgba(255, 64, 129, .25);
}

.swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 150px);
}

.phone-container {
    position: relative;
    width: 420px;
    height: 680px;
    background: #fff;
    border-radius: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.image-container {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100%;
    width: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.card.shadow-lg {
    width: 420px !important;
    height: 680px;
    border-radius: 2.5rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
}

.carousel-inner {
    height: 520px;
    border-radius: 2.5rem 2.5rem 0 0;
    overflow: hidden;
}

.carousel-control-prev, .carousel-control-next {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #ff4081;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background-size: 60% 60%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.carousel-control-prev-icon {
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 8 8" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 0L4.8.7 2.5 4l2.3 3.3.7.7-4-4z"/></svg>');
}
.carousel-control-next-icon {
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 8 8" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 0l.7.7L5.5 4l-2.3 3.3-.7.7 4-4z"/></svg>');
}

.carousel-indicators {
    position: relative;
    top: 0;
    bottom: unset;
    margin-bottom: 10px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
}

.carousel-indicators [data-bs-target] {
    background-color: #ff4081;
    opacity: 0.7;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, opacity 0.2s;
}

.carousel-indicators .active {
    background-color: #ff4081;
    opacity: 1;
    border: 2px solid #ff4081;
}

.user-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 0 0 2.5rem 2.5rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
    padding-bottom: 18px;
    padding-top: 10px;
    width: 100%;
    z-index: 2;
    color: #222;
    text-align: center;
}

/* Unread Indicators */
.unread-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-red 2s infinite;
}

/* Pulse Animation */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Notification Pulse (legacy support) */
.notification-pulse {
    animation: pulse-red 2s infinite;
}

/* Message indicators */
.read-indicator {
    transition: color 0.3s ease;
}

.new-message-badge {
    animation: pulse-red 2s infinite;
}

/* Chat animations */
.message-sent-indicator {
    animation: fadeInOut 1s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* General pulse animation for various elements */
.pulse {
    animation: pulse-general 2s infinite;
}

@keyframes pulse-general {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dot flashing animation for typing indicator */
.dot-flashing {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9880ff;
    color: #9880ff;
    animation: dotFlashing 1s infinite linear alternate;
    animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}

.dot-flashing::before {
    left: -15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9880ff;
    color: #9880ff;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 0s;
}

.dot-flashing::after {
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9880ff;
    color: #9880ff;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 1s;
}

@keyframes dotFlashing {
    0% {
        background-color: #9880ff;
    }
    50%,
    100% {
        background-color: rgba(152, 128, 255, 0.2);
    }
}

/* Range Slider Styles */
.range-slider {
    position: relative;
    margin: 20px 0;
}

.range-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.range-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    border: none;
}

.range-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.range-value::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #333;
}

.dual-range {
    position: relative;
    margin: 20px 0;
}

.dual-range input[type="range"] {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: all;
    position: relative;
    z-index: 2;
}

.dual-range .track {
    position: relative;
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    margin: 10px 0;
}

.dual-range .range {
    position: absolute;
    height: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Debug: Ensure notification switches are visible */
.settings-section .switch {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 50px !important;
    height: 24px !important;
}

.settings-section .switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.settings-section .slider {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Video Call Styles */
.video-call-overlay {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
}

.video-call-overlay video {
    border-radius: 8px;
}

.video-call-overlay .btn {
    transition: all 0.3s ease;
}

.video-call-overlay .btn:hover {
    transform: scale(1.1);
}

.video-call-overlay .btn-danger:hover {
    background-color: #dc3545 !important;
    transform: scale(1.2);
}

.incoming-call-modal .modal-content {
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.incoming-call-modal .btn {
    transition: all 0.3s ease;
}

.incoming-call-modal .btn:hover {
    transform: scale(1.1);
}

/* Video call button animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.video-call-button:hover {
    animation: pulse 1s infinite;
}

/* Responsive video call layout */
@media (max-width: 768px) {
    .video-call-overlay .position-absolute {
        width: 120px !important;
        height: 160px !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    .video-call-overlay .btn {
        width: 50px !important;
        height: 50px !important;
    }
    
    .video-call-overlay .btn i {
        font-size: 1.2rem !important;
    }
}
