/* === GLOBAL STYLES & VARIABLES === */
:root {
    /* Primary Colors */
    --primary: #00d4aa;
    --primary-dark: #00b894;
    --primary-glow: rgba(0, 212, 170, 0.3);
    --secondary: #6c5ce7;
    --accent: #fd79a8;
    --warning: #fdcb6e;
    --danger: #e84393;
    --success: #00b894;
    --info: #74b9ff;

    /* Background/Surface Colors (Dark Theme Default) */
    --bg-primary: #0a0e27;
    --bg-secondary: #151933;
    --bg-tertiary: #1e2444;
    --bg-card: rgba(21, 25, 51, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-overlay: rgba(10, 14, 39, 0.95);

    /* Text Colors */
    --text-primary: #e3f2fd;
    --text-secondary: #b3e5fc;
    --text-muted: #81d4fa;
    --text-inverse: #0a0e27;

    /* Borders & Effects */
    --border: rgba(0, 212, 170, 0.15);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow: 0 0 30px rgba(0, 212, 170, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    --gradient-secondary: linear-gradient(135deg, #6c5ce7 0%, #5b4fcf 100%);
    --gradient-accent: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    --gradient-bg: radial-gradient(ellipse at top, #1a2352, #0a0e27);
    --gradient-card: linear-gradient(135deg, rgba(21, 25, 51, 0.9) 0%, rgba(10, 14, 39, 0.9) 100%);

    /* Call type colors */
    --missed-color: #e84393;
    --received-color: #00b894;
    --dialed-color: #74b9ff;

    /* Customizable UI colors (defaulting to dark theme values) */
    --header-color: var(--bg-secondary);
    --footer-color: var(--bg-secondary);
    --font-color: var(--text-primary);
    --background-color: var(--bg-primary);
}

[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e4e6eb;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.05);
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --text-primary: #1c1e21;
    --text-secondary: #65676b;
    --text-muted: #8a8d91;
    --text-inverse: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --glow: 0 0 30px rgba(0, 212, 170, 0.1);
    --gradient-bg: radial-gradient(ellipse at top, #e4e6eb, #f0f2f5);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 244, 244, 0.9) 100%);

    /* Light Theme customizable colors */
    --header-color: var(--bg-secondary);
    --footer-color: var(--bg-secondary);
    --font-color: var(--text-primary);
    --background-color: var(--bg-primary);
}

/* === GLOBAL RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-bg);
    color: var(--font-color);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    transition: all 0.3s ease;
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg) translateZ(0);
    }
    25% {
        transform: translate(30px, -50px) scale(1.05) rotate(90deg) translateZ(0);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95) rotate(180deg) translateZ(0);
    }
    75% {
        transform: translate(50px, 20px) scale(1.02) rotate(270deg) translateZ(0);
    }
}

@keyframes appEntrance {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateX(-50%) translateY(100%);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalBounce {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(20px) scale(1.05);
    }
    80% {
        transform: translateY(-10px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes notificationBounce {
    0% {
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }
    50% {
        transform: translateX(-50%) translateY(5px) scale(1.05);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rainbow {
    to {
        background-position: 200% center;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Base fade in for app container */
@keyframes appBaseFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === BACKGROUND ANIMATION === */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -200px;
    left: -200px;
    animation-delay: 5s;
    animation-duration: 30s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
    animation-duration: 35s;
}

.circle-4 {
    width: 200px;
    height: 200px;
    background: var(--warning);
    top: 20%;
    left: 10%;
    animation-delay: 15s;
    animation-duration: 28s;
}

.circle-5 {
    width: 350px;
    height: 350px;
    background: var(--info);
    bottom: 10%;
    right: 15%;
    animation-delay: 7s;
    animation-duration: 32s;
}

/* === APP CONTAINER === */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    background: var(--background-color);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    animation: appEntrance 0.6s ease-out;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    overflow-x: hidden;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    padding: 0.5rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.8s ease-out 0.2s both;
    padding-bottom: 70px; /* Space for bottom nav */
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* === PAGE CONTENT === */
.page-content {
    display: none;
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 2;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.page-content.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--footer-color);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 100;
    animation: slideUp 0.5s ease-out 0.3s both;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.nav-item:hover::before {
    transform: scale(1);
    opacity: 1;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item:hover {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: translateY(-3px);
}

.nav-indicator {
    position: absolute;
    top: -0.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-item.active .nav-indicator {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s infinite;
}

/* === CALLS PAGE STYLES === */
.calls-page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 20px;
    overflow-y: auto;
    animation: fadeIn 0.8s ease;
}

.calls-page-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background: var(--bg-glass);
    border-radius: 30px;
    padding: 5px;
    height: 60px;
}

.calls-page-tab {
    flex: 1;
    padding: 10px;
    border-radius: 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calls-page-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.2), transparent);
    transition: left 0.5s;
}

.calls-page-tab:hover::before {
    left: 100%;
}

.calls-page-tab.active {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    transform: scale(1.05);
}

.calls-page-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
}

.call-lists-container {
    flex: 1;
    overflow-y: auto;
}

.call-list {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
}

.call-list.active {
    display: flex;
}

.call-date-group {
    margin-bottom: 1rem;
}

.call-date-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.call-item {
    background: var(--gradient-card);
    border-radius: 12px;
    padding: 0.8rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease both;
}

.call-item:nth-child(1) {
    animation-delay: 0.05s;
}

.call-item:nth-child(2) {
    animation-delay: 0.1s;
}

.call-item:nth-child(3) {
    animation-delay: 0.15s;
}

.call-item:nth-child(4) {
    animation-delay: 0.2s;
}

.call-item:nth-child(5) {
    animation-delay: 0.25s;
}

.call-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.call-item.missed::before {
    background: var(--missed-color);
}

.call-item.received::before {
    background: var(--received-color);
}

.call-item.dialed::before {
    background: var(--dialed-color);
}

.call-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.call-item:hover::before {
    transform: scaleY(1);
}

.call-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.call-item:hover .call-avatar {
    transform: scale(1.1);
}

.call-avatar.spam {
    background: rgba(232, 67, 147, 0.2);
    color: var(--danger);
}

.call-avatar.safe {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

.call-avatar.unknown {
    background: rgba(253, 203, 110, 0.2);
    color: var(--warning);
}

.call-info {
    flex: 1;
}

.call-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.call-item:hover .call-name {
    color: var(--primary);
}

.call-number {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.call-details {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.call-type-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.call-type-icon.missed {
    background: rgba(232, 67, 147, 0.2);
    color: var(--missed-color);
}

.call-type-icon.received {
    background: rgba(0, 184, 148, 0.2);
    color: var(--received-color);
}

.call-type-icon.dialed {
    background: rgba(116, 185, 255, 0.2);
    color: var(--dialed-color);
}

.call-actions {
    display: flex;
    gap: 0.4rem;
}

.call-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.call-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.call-action-btn:hover::before {
    width: 100%;
    height: 100%;
}

.call-action-btn:hover {
    transform: scale(1.1);
}

.call-action-btn.call {
    color: #25D366;
}

.call-action-btn.message {
    color: var(--primary);
}

.call-action-btn.block {
    color: var(--danger);
}

.call-action-btn.block:hover {
    background: rgba(232, 67, 147, 0.2);
    border-color: var(--danger);
}

/* WhatsApp button style */
.call-action-btn.whatsapp {
    background-color: #25D366;
    color: white;
}

/* Add button style */
.call-action-btn.add {
    background-color: var(--info);
    color: white;
}

/* === DIALER PAGE (Mobile-Optimized Design) === */
.dialer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--background-color);
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Number display area */
.number-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0 5px;
    min-height: 60px;
    background: var(--background-color);
}

#dialedNumber {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

.delete-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.delete-btn:hover {
    opacity: 1;
}

/* Main content wrapper - ensures perfect centering */
.dialer-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--background-color);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 15px 5px; /* Minimal bottom padding */
}

/* Combined grid for dialer and SIM buttons */
.dialer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr); /* 5 rows now (4 for dialer + 1 for SIM) */
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.dialer-key {
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    width: 110px; /* Larger size */
    height: 110px; /* Larger size */
}

.dialer-key:active {
    background: var(--bg-secondary);
    transform: scale(0.95);
}

.dialer-key-number {
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}

.dialer-key-letters {
    font-size: 13px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Special styling for 0 key */
.dialer-key[data-number="0"] .dialer-key-letters {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
}

/* SIM buttons - Same height as dial buttons but rectangular */
.sim-btn {
    background: #4CAF50; /* Light green - default call button color */
    border: none;
    border-radius: 30px; /* Pill-shaped buttons */
    width: 110px; /* Same width as dial buttons */
    height: 110px; /* Same height as dial buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

.sim-btn.active {
    background: #2E7D32; /* Darker green for active state */
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.sim-spacer {
    width: 110px;
    height: 110px;
}

/* Position SIM buttons in the 5th row */
.sim-btn:nth-child(13) {
    grid-column: 1;
    grid-row: 5;
}

.sim-spacer {
    grid-column: 2;
    grid-row: 5;
}

.sim-btn:nth-child(15) {
    grid-column: 3;
    grid-row: 5;
}

/* === MOBILE-ONLY RESPONSIVE DESIGN === */
@media (max-width: 480px) {
    .dialer-main-content {
        max-width: 95%;
        padding: 0 10px 3px; /* Minimal bottom padding */
    }
    
    .dialer-grid {
        gap: 12px;
    }
    
    .dialer-key {
        width: 100px; /* Slightly smaller for smaller screens */
        height: 100px;
    }
    
    .dialer-key-number {
        font-size: 34px;
    }
    
    .dialer-key-letters {
        font-size: 12px;
    }
    
    #dialedNumber {
        font-size: 28px;
    }
    
    .sim-btn {
        width: 100px; /* Match dial buttons */
        height: 100px;
        font-size: 15px;
    }
    
    .sim-spacer {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 380px) {
    .dialer-main-content {
        max-width: 98%;
        padding: 0 8px 2px; /* Even smaller bottom padding */
    }
    
    .dialer-grid {
        gap: 10px;
    }
    
    .dialer-key {
        width: 90px; /* Smaller for very small screens */
        height: 90px;
    }
    
    .dialer-key-number {
        font-size: 30px;
    }
    
    .dialer-key-letters {
        font-size: 11px;
    }
    
    .sim-btn {
        width: 90px; /* Match dial buttons */
        height: 90px;
        font-size: 14px;
    }
    
    .sim-spacer {
        width: 90px;
        height: 90px;
    }
}

/* For very large mobile screens */
@media (min-width: 481px) and (max-width: 768px) {
    .dialer-main-content {
        max-width: 450px;
    }
    
    .dialer-grid {
        gap: 18px;
    }
    
    .dialer-key {
        width: 120px;
        height: 120px;
    }
    
    .dialer-key-number {
        font-size: 42px;
    }
    
    .dialer-key-letters {
        font-size: 14px;
    }
    
    .sim-btn {
        width: 120px; /* Match dial buttons */
        height: 120px;
        font-size: 17px;
    }
    
    .sim-spacer {
        width: 120px;
        height: 120px;
    }
}

/* === SMS PAGE STYLES === */
.sms-page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sms-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background: var(--bg-glass);
    border-radius: 30px;
    padding: 5px;
    height: 60px;
}

.sms-tab-btn {
    flex: 1;
    padding: 10px;
    border-radius: 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sms-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.2), transparent);
    transition: left 0.5s;
}

.sms-tab-btn:hover::before {
    left: 100%;
}

.sms-tab-btn.active {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    transform: scale(1.05);
}

.sms-tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
}

.sms-conversations {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    padding: 0.2rem 0;
}

.sms-conversation {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.8rem;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease both;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
}

.sms-conversation:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sms-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sms-conversation:hover .sms-avatar {
    transform: scale(1.1);
}

.sms-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sms-name {
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sms-number {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sms-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sms-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 0.8rem;
    flex-shrink: 0;
}

.sms-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.sms-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* === MESSAGE DETAIL STYLES === */
.message-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.message-detail.active {
    transform: translateX(0);
}

.message-detail-header {
    padding: 20px;
    background: var(--gradient-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
}

.message-detail-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message-detail .message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
}

.message-detail .message-bubble.received {
    background-color: var(--bg-glass);
    color: var(--font-color);
    align-self: flex-start;
}

.message-detail .message-bubble.sent {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* === COMPOSE MESSAGE STYLES === */
.compose-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.compose-message.active {
    transform: translateX(0);
}

.modern-compose {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-compose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: slideRight 3s infinite;
}

.compose-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.compose-back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compose-back-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.compose-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.compose-to {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.compose-to-label {
    margin-right: 15px;
    font-weight: 600;
}

.compose-contact-picker {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.modern-compose-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modern-compose-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.contact-picker-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-picker-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.modern-compose-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    resize: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.modern-compose-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.modern-compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modern-compose-cancel {
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--bg-glass);
    border: none;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-compose-cancel:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.modern-compose-send {
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-inverse);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modern-compose-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

/* === CONTACTS PAGE STYLES === */
.contacts-page-container {
    padding-top: 0.3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 20px;
    overflow-y: auto;
}

.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
    height: 100%;
    padding-bottom: 0.5rem;
}

.contacts-section {
    background: var(--gradient-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 0.8rem;
    animation: fadeIn 0.8s ease;
    animation-fill-mode: both;
}

.contacts-section:nth-child(1) {
    animation-delay: 0.1s;
}

.contacts-section:nth-child(2) {
    animation-delay: 0.2s;
}

.contacts-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contacts-section-title i {
    color: var(--primary);
    transition: all 0.3s ease;
}

.contacts-section:hover .contacts-section-title i {
    transform: scale(1.2);
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-item {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 0.8rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideIn 0.5s ease both;
}

.contact-item:nth-child(1) {
    animation-delay: 0.05s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.15s;
}

.contact-item:nth-child(4) {
    animation-delay: 0.2s;
}

.contact-item:nth-child(5) {
    animation-delay: 0.25s;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-avatar {
    transform: scale(1.1);
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-name {
    color: var(--primary);
}

.contact-number {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.contact-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-actions {
    display: flex;
    gap: 0.4rem;
}

.contact-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.contact-action-btn:hover::before {
    width: 100%;
    height: 100%;
}

.contact-action-btn:hover {
    transform: scale(1.1);
}

.contact-action-btn.call {
    background: rgba(0, 212, 170, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.contact-action-btn.message {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

/* === FAVORITES PAGE STYLES === */
.favorites-page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 20px;
    overflow-y: auto;
    animation: fadeIn 0.8s ease;
}

.favorites-header {
    padding: 1rem;
    background: var(--gradient-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    text-align: center;
}

.favorites-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.favorites-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.favorite-item {
    background: var(--gradient-card);
    border-radius: 12px;
    padding: 0.8rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease both;
}

.favorite-item:nth-child(1) {
    animation-delay: 0.05s;
}

.favorite-item:nth-child(2) {
    animation-delay: 0.1s;
}

.favorite-item:nth-child(3) {
    animation-delay: 0.15s;
}

.favorite-item:nth-child(4) {
    animation-delay: 0.2s;
}

.favorite-item:nth-child(5) {
    animation-delay: 0.25s;
}

.favorite-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.favorite-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.favorite-item:hover .favorite-avatar {
    transform: scale(1.1);
}

.favorite-heart {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.favorite-heart:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.favorite-info {
    flex: 1;
}

.favorite-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.favorite-item:hover .favorite-name {
    color: var(--primary);
}

.favorite-number {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.favorite-calls {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.favorite-actions {
    display: flex;
    gap: 0.4rem;
}

.favorite-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.favorite-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.favorite-action-btn:hover::before {
    width: 100%;
    height: 100%;
}

.favorite-action-btn:hover {
    transform: scale(1.1);
}

.favorite-action-btn.call {
    background: rgba(0, 212, 170, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.favorite-action-btn.message {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

/* === SETTINGS PAGE STYLES === */
.settings-page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 20px;
    overflow-y: auto;
}

.settings-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background: var(--bg-glass);
    border-radius: 30px;
    padding: 5px;
    height: 60px;
}

.settings-tab-btn {
    flex: 1;
    padding: 10px;
    border-radius: 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.2), transparent);
    transition: left 0.5s;
}

.settings-tab-btn:hover::before {
    left: 100%;
}

.settings-tab-btn.active {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    transform: scale(1.05);
}

.settings-tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
}

.settings-section {
    background: var(--gradient-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease;
    animation-fill-mode: both;
}

.settings-section:nth-child(1) {
    animation-delay: 0.1s;
}

.settings-section:nth-child(2) {
    animation-delay: 0.2s;
}

.settings-section:nth-child(3) {
    animation-delay: 0.3s;
}

.settings-section:nth-child(4) {
    animation-delay: 0.4s;
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.settings-section-title i {
    color: var(--primary);
    transition: all 0.3s ease;
}

.settings-section:hover .settings-section-title i {
    transform: scale(1.2);
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-option:hover {
    padding-left: 0.5rem;
}

.settings-option-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.settings-option-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--gradient-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Theme and Color Customization */
.theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-option:hover {
    background: var(--bg-glass);
}

.theme-option.active {
    background: var(--primary-glow);
}

.theme-option input[type="radio"] {
    display: none;
}

.theme-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
}

.theme-option-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.theme-option.dark .theme-option-icon {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.theme-option.light .theme-option-icon {
    background: #f0f2f5;
    color: #1c1e21;
}

/* Color Picker */
.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.color-picker-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-picker {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.color-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.color-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.color-preset {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: var(--text-primary);
}

.color-reset-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.color-reset-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* === MODAL STYLES === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalBounce 0.5s ease;
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(232, 67, 147, 0.2);
    color: var(--danger);
    transform: rotate(90deg);
}

/* === NOTIFICATION STYLES === */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    z-index: 300;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notification.show {
    top: 2rem;
    animation: notificationBounce 0.5s ease;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: iconPulse 2s infinite;
}

.notification.success .notification-icon {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

.notification.error .notification-icon {
    background: rgba(232, 67, 147, 0.2);
    color: var(--danger);
}

.notification.warning .notification-icon {
    background: rgba(253, 203, 110, 0.2);
    color: var(--warning);
}

.notification.info .notification-icon {
    background: rgba(116, 185, 255, 0.2);
    color: var(--info);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.notification-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* === EMPTY STATE STYLES === */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.8s ease;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: iconFloat 3s ease-in-out infinite;
}

.empty-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* === RAINBOW TEXT EFFECT === */
.rainbow-text {
    background: linear-gradient(to right, #00d4aa, #6c5ce7, #fd79a8, #fdcb6e, #e84393, #74b9ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s linear infinite;
}

/* === SEARCH STYLES === */
.search-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.8s ease;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 45px; /* Padding on both sides for icons */
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-icon:hover {
    color: var(--primary);
}

/* Voice search button */
.voice-search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.voice-search-btn:hover {
    color: var(--primary);
    background: rgba(0, 212, 170, 0.1);
}

/* Voice search active state */
.voice-search-btn.active {
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

/* Ripple effect for voice search button */
.voice-search-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.voice-search-btn:active::after {
    width: 100px;
    height: 100px;
}

/* === FORM STYLES (General) === */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--bg-tertiary);
}

.btn-save {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

/* === ACCOUNT/OTP PAGE STYLES === */
.account-page-container {
    padding: 1rem;
    height: 100%;
    overflow-y: auto;
    animation: fadeIn 0.5s ease;
}

.account-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.account-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--text-inverse);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.3);
}

.account-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.account-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.account-form {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.account-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.account-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
}

.account-button {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: var(--gradient-primary);
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.account-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.3);
}

.account-button:active {
    transform: translateY(-1px);
}

.account-button.secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.account-button.secondary:hover {
    background: var(--bg-tertiary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 1rem;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.social-button {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-button:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.social-button.google {
    color: #DB4437;
}

.social-button.apple {
    color: var(--text-primary);
}

.social-button.facebook {
    color: #4267B2;
}

.account-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.account-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.account-link:hover {
    text-decoration: underline;
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terms-agreement input[type="checkbox"] {
    margin-top: 0.2rem;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* OTP specific styles */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.otp-input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-glass);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

	/* === TIMER STYLES === */
.timer {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === CALL UI STYLES === */
.call-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    color: var(--font-color);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.call-ui.active {
    display: flex;
}

.call-ui-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.call-ui-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.call-ui-info {
    text-align: center;
}

.call-ui-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.call-ui-number {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.call-ui-status {
    font-size: 1rem;
    opacity: 0.6;
}

.call-ui-actions {
    display: flex;
    justify-content: space-around;
    padding: 2rem 0;
}

.call-ui-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.call-ui-btn.accept {
    background-color: var(--success);
    color: white;
}

.call-ui-btn.decline {
    background-color: var(--danger);
    color: white;
}

.call-ui-btn:not(.accept):not(.decline) {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--font-color);
}

.call-ui-btn:active {
    transform: scale(0.95);
}

/* Call Dialpad */
.call-dialpad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    color: var(--font-color);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.call-dialpad.active {
    transform: translateY(0);
}

.call-dialpad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.call-dialpad-close {
    background: none;
    border: none;
    color: var(--font-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.call-dialpad-display {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
}

.call-dialpad-keys {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.call-dialpad-key {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.call-dialpad-key:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.call-dialpad-digit {
    font-size: 1.5rem;
    font-weight: 500;
}

.call-dialpad-letters {
    font-size: 0.7rem;
    opacity: 0.7;
}