/* 
 * VoicePhone Pro - Softphone SIP Stylesheet
 * Design moderne avec thème sombre
 */

:root {
    /* Couleurs principales */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #1e1e2a;
    --bg-hover: #252535;
    
    /* Accents */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-info: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Texte */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Bordures */
    --border-color: #2d2d3d;
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    
    /* Dimensions */
    --sidebar-width: 280px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

.status-indicator.online::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent-success);
    animation: pulse-ring 1.5s infinite;
}

.status-indicator.offline {
    background: var(--text-muted);
}

.status-indicator.connecting {
    background: var(--accent-warning);
    animation: pulse 1s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Audio Visualizer */
.audio-visualizer {
    margin-top: auto;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

#audioVisualizerCanvas {
    width: 100%;
    height: 60px;
    border-radius: var(--border-radius-sm);
}

.visualizer-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 32px 40px;
    min-height: 100vh;
}

/* Panels */
.panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    margin-bottom: 32px;
}

.panel-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Phone Display */
.phone-display {
    position: relative;
    margin-bottom: 24px;
}

.phone-input {
    width: 100%;
    max-width: 400px;
    padding: 20px 50px 20px 24px;
    font-size: 1.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 2px;
    transition: all var(--transition-fast);
}

.phone-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.phone-input::placeholder {
    color: var(--text-muted);
    font-size: 1.25rem;
    letter-spacing: normal;
}

.clear-btn {
    position: absolute;
    right: calc(100% - 400px + 12px);
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--bg-hover);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: var(--accent-danger);
    color: white;
}

.clear-btn svg {
    width: 16px;
    height: 16px;
}

/* Dialpad */
.dialpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 320px;
    margin-bottom: 32px;
}

.dial-key {
    aspect-ratio: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 2px;
}

.dial-key:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.dial-key:active {
    transform: scale(0.98);
    background: var(--accent-primary);
}

.key-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.key-letters {
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    min-height: 12px;
}

/* Call Actions */
.call-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.call-btn, .hangup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.call-btn {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.call-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hangup-btn {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.hangup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.call-btn svg, .hangup-btn svg {
    width: 24px;
    height: 24px;
}

/* Call Indicator */
.call-indicator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    max-width: 450px;
}

.call-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.caller-avatar {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caller-avatar svg {
    width: 32px;
    height: 32px;
    color: white;
}

.caller-avatar.pulse {
    animation: avatar-pulse 2s infinite;
}

@keyframes avatar-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
}

.call-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caller-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.call-status {
    color: var(--accent-success);
    font-size: 0.875rem;
}

.call-duration {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.call-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.control-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

/* Voice Panel */
.voice-presets, .voice-controls, .voice-effects {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.voice-presets h3, .voice-controls h3, .voice-effects h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Presets Grid */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preset-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.preset-btn.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.preset-icon {
    font-size: 2rem;
}

.preset-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Voice Controls */
.control-group {
    margin-bottom: 24px;
}

.control-group:last-child {
    margin-bottom: 0;
}

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

.control-label {
    font-size: 0.9375rem;
    font-weight: 500;
}

.control-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Range Inputs */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Effects Grid */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.effect-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.effect-btn span:first-child {
    font-size: 1.5rem;
}

.effect-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--text-primary);
}

.effect-btn.active {
    border-color: var(--accent-secondary);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

/* Voice Test */
.voice-test {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
}

.test-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.test-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.test-btn.active {
    background: var(--gradient-danger);
    animation: recording-pulse 1s infinite;
}

@keyframes recording-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.test-btn svg {
    width: 20px;
    height: 20px;
}

.test-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Reset Button */
.reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reset-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.reset-btn svg {
    width: 18px;
    height: 18px;
}

/* Settings Form */
.settings-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    max-width: 500px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.primary-btn, .secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.secondary-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.secondary-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.primary-btn svg, .secondary-btn svg {
    width: 18px;
    height: 18px;
}

/* Audio Devices */
.audio-devices {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    max-width: 500px;
}

.audio-devices h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.audio-devices select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* SIP Providers Info */
.sip-providers-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    max-width: 500px;
}

.sip-providers-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.provider-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    flex-wrap: wrap;
    gap: 8px;
}

.provider-item strong {
    font-weight: 500;
}

.provider-item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-info);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.info-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--accent-warning);
}

/* History Panel */
.history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.history-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.history-item:hover {
    background: var(--bg-hover);
}

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

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-icon.outgoing {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}

.history-icon.incoming {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-info);
}

.history-icon.missed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.history-icon svg {
    width: 20px;
    height: 20px;
}

.history-details {
    flex: 1;
    min-width: 0;
}

.history-number {
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.history-duration {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.incoming-call {
    text-align: center;
}

.caller-info {
    margin-bottom: 32px;
}

.caller-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.caller-info p {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.incoming-actions {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.reject-btn, .accept-btn {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.reject-btn {
    background: var(--gradient-danger);
    color: white;
}

.accept-btn {
    background: var(--gradient-success);
    color: white;
    animation: ring 1.5s infinite;
}

@keyframes ring {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reject-btn:hover, .accept-btn:hover {
    transform: scale(1.1);
}

.reject-btn svg, .accept-btn svg {
    width: 28px;
    height: 28px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

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

.toast.success {
    border-left: 4px solid var(--accent-success);
}

.toast.error {
    border-left: 4px solid var(--accent-danger);
}

.toast.warning {
    border-left: 4px solid var(--accent-warning);
}

.toast.info {
    border-left: 4px solid var(--accent-info);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 16px 8px;
    }
    
    .logo-text, .nav-item span, .visualizer-label {
        display: none;
    }
    
    .logo-icon {
        margin: 0 auto;
    }
    
    .nav-item {
        justify-content: center;
        padding: 14px;
    }
    
    .connection-status span {
        display: none;
    }
    
    .connection-status {
        justify-content: center;
    }
    
    .main-content {
        margin-left: 80px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 8px 16px;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }
    
    .logo, .connection-status, .audio-visualizer {
        display: none;
    }
    
    .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
    
    .nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        font-size: 0.625rem;
    }
    
    .nav-item span {
        display: block;
    }
    
    .nav-item svg {
        width: 24px;
        height: 24px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px 16px 100px;
    }
    
    .panel-header h2 {
        font-size: 1.5rem;
    }
    
    .phone-input {
        max-width: 100%;
        font-size: 1.25rem;
    }
    
    .clear-btn {
        right: 12px;
    }
    
    .dialpad {
        max-width: 100%;
    }
    
    .call-actions {
        flex-direction: column;
    }
    
    .call-btn, .hangup-btn {
        width: 100%;
        justify-content: center;
    }
    
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .settings-form, .audio-devices, .sip-providers-info {
        max-width: 100%;
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 100px;
    }
    
    .toast {
        max-width: 100%;
    }
}
