/* Modern Professional UI - shadcn/ui inspired */

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom right, #f8fafc, #e2e8f0);
    color: hsl(var(--foreground));
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    background: hsl(var(--card));
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border: 1px solid hsl(var(--border));
}

h1 {
    color: hsl(var(--foreground));
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    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: hsl(var(--input));
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid hsl(var(--border));
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

input:checked + .slider {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

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

#modeLabel {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

/* Status Bar */
.status-bar {
    background: hsl(var(--card));
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border: 1px solid hsl(var(--border));
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.status-value.online {
    color: hsl(142 76% 36%);
}

.status-value.offline {
    color: hsl(var(--destructive));
}

/* Panel */
.panel {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border: 1px solid hsl(var(--border));
    transition: box-shadow 0.2s;
}

.panel:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Dialer Panel */
.dialer-panel {
    max-width: 450px;
    margin: 0 auto;
}

.dial-input-group {
    margin-bottom: 1.5rem;
}

.dial-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid hsl(var(--input));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: all 0.2s;
    letter-spacing: 0.1em;
}

.dial-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* Dialpad */
.dialpad {
    margin-bottom: 1.5rem;
}

.dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.dialpad-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 70px;
}

.dialpad-btn:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.dialpad-btn:active {
    transform: translateY(0);
}

.dialpad-btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.digit {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1;
}

.letters {
    font-size: 0.625rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-primary:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--secondary) / 0.8);
}

.btn-secondary:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn-danger {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.btn-danger:hover {
    background: hsl(var(--destructive) / 0.9);
}

.btn-danger:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn-call {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.5rem;
}

.btn-hangup {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Call Screen */
.call-screen {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.call-screen.active {
    display: block;
}

.pulse-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.pulse-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: hsl(var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 2;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid hsl(var(--primary));
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

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

.calling-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
}

.calling-status {
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

/* Call Controls */
.call-controls-panel {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.call-controls-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.call-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 80px;
    height: 80px;
    border: 2px solid hsl(var(--border));
    border-radius: 50%;
    background: hsl(var(--background));
    cursor: pointer;
    transition: all 0.2s;
}

.call-control-btn:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.call-control-btn.btn-hangup-control {
    background: hsl(var(--destructive));
    border-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.call-control-btn.btn-hangup-control:hover {
    background: hsl(var(--destructive) / 0.9);
    border-color: hsl(var(--destructive) / 0.9);
}

.call-control-btn.btn-dtmf-toggle {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.call-control-btn.btn-dtmf-toggle:hover {
    background: hsl(var(--primary) / 0.9);
    border-color: hsl(var(--primary) / 0.9);
}

.call-control-btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.control-icon {
    font-size: 2rem;
    line-height: 1;
}

.control-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* DTMF Dialpad */
.dtmf-dialpad {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.dtmf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 280px;
    margin: 0 auto;
}

.dtmf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.dtmf-btn:hover {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.dtmf-btn:active {
    transform: scale(0.95);
}

.dtmf-btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    display: none;
    z-index: 1000;
    border: 1px solid hsl(var(--border));
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 350px;
}

.toast.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    background: hsl(142 76% 36%);
    color: white;
    border-color: hsl(142 76% 36%);
}

.toast.error {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border-color: hsl(var(--destructive));
}

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

/* Phone Container */
.phone-container {
    max-width: 450px;
    margin: 0 auto;
}

/* Form Elements */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 2px solid hsl(var(--input));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* Call Buttons */
.call-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Audio Element */
audio {
    display: none;
}

/* Country Selector Buttons */
.country-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.country-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.country-btn:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1);
}

.country-btn.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1);
}

.country-btn.active:hover {
    background: hsl(var(--primary) / 0.9);
}

.country-btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Phone Display */
.phone-display {
    margin-bottom: 1.5rem;
}

.phone-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid hsl(var(--input));
    border-radius: var(--radius);
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.phone-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
    background: hsl(var(--background));
}

/* Dialer Actions */
.dialer-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.btn-dialer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.btn-dialer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-dialer:active {
    transform: translateY(0);
}

.btn-dialer:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn-dialer .btn-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.btn-dialer .btn-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-delete {
    background: hsl(var(--secondary));
    border-color: hsl(var(--border));
}

.btn-delete:hover {
    background: hsl(var(--secondary) / 0.8);
    border-color: hsl(var(--primary));
}

.btn-call-main {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1);
}

.btn-call-main:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-clear {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border-color: hsl(var(--destructive));
}

.btn-clear:hover {
    background: hsl(var(--destructive) / 0.9);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Extension Buttons */
.extension-selector {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.ext-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
}

.ext-btn:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1);
}

.ext-btn:active {
    transform: translateY(0);
}

.ext-btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: hsl(var(--muted));
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsl(var(--destructive));
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.connected {
    background: hsl(142 76% 36%);
}

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

#statusText {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

/* Phone Header */
.phone-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.phone-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.phone-body {
    margin-top: 1.5rem;
}

.current-extension {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.current-extension h3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
}

.current-extension h3 span {
    color: hsl(var(--primary));
}

/* Call Status */
.call-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: hsl(var(--muted));
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info Text */
.info-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

/* Call Info */
.call-info {
    margin-top: 2rem;
    padding: 2rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: all 0.2s;
}

.call-info:hover {
    background: hsl(var(--muted) / 0.8);
}

.call-info-content {
    text-align: center;
}

.calling-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Scrollable Container */
.scrollable-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--muted));
}

.scrollable-container::-webkit-scrollbar {
    width: 8px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: hsl(var(--muted));
    border-radius: var(--radius);
}

.scrollable-container::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: var(--radius);
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground) / 0.3);
}

/* Channels List */
.channels-list {
    margin-bottom: 0;
    min-height: 100px;
}

.no-data {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    padding: 2rem;
}

/* Recordings List */
.recordings-list {
    margin-bottom: 0;
    min-height: 100px;
}

/* SIP Config Tabs */
.sip-config-tabs {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border: 1px solid hsl(var(--border));
}

.sip-config-tabs h2 {
    margin-bottom: 0.5rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    border-bottom: 2px solid hsl(var(--border));
}

.tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.tab-button:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent));
}

.tab-button.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
    font-weight: 600;
}

.tab-button:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
    border-radius: var(--radius);
}

.tab-content {
    display: none;
    padding-top: 1.5rem;
}

.tab-content.active {
    display: block;
}

.scrollable-container .tab-content {
    padding-top: 0;
}

.config-box {
    background: hsl(var(--background));
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.scrollable-container .config-box {
    background: hsl(var(--background));
}

.config-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.config-item {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    border-bottom: 1px solid hsl(var(--border));
}

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

.config-item strong {
    color: hsl(var(--muted-foreground));
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

/* Dialer Container */
.dialer-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .status-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .panel {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .dialpad-btn {
        min-height: 60px;
        padding: 1rem;
    }

    .digit {
        font-size: 1.25rem;
    }

    .dialer-actions {
        flex-direction: column;
    }

    .btn-dialer {
        width: 100%;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .country-selector {
        flex-direction: column;
    }

    .country-btn {
        width: 100%;
    }

    .extension-selector {
        flex-direction: column;
    }

    .ext-btn {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        margin-bottom: 0;
        margin-left: -2rem;
        padding-left: calc(2rem - 3px);
    }

    .tab-button.active {
        border-left-color: hsl(var(--primary));
        border-bottom: none;
    }
}
