/* Windows 8 Metro Mobile Start Screen - Authentic Design */
.theme-windows8 {
    font-family: "Segoe UI", "Segoe WP", "Segoe UI Symbol", sans-serif;
    background: #1e1e1e; /* Authentic Windows 8 dark background */
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    /* Teal-based Metro Colors for Soft Phone */
    --metro-teal: #00b294;
    --metro-teal-dark: #00695c;
    --metro-teal-light: #26a69a;
    --metro-teal-accent: #00bcd4;
    --metro-blue: #00bcd4;
    --metro-blue-dark: #0097a7;
    --metro-green: #4caf50;
    --metro-green-dark: #388e3c;
    --metro-red: #f44336;
    --metro-red-dark: #d32f2f;
    --metro-orange: #ff9800;
    --metro-orange-dark: #f57c00;
    --metro-purple: #9c27b0;
    --metro-purple-dark: #7b1fa2;
    --metro-pink: #e91e63;
    --metro-pink-dark: #c2185b;
    --metro-lime: #8bc34a;
    --metro-lime-dark: #689f38;
    --metro-brown: #8d6e63;
    --metro-brown-dark: #5d4037;
    --metro-cyan: #00bcd4;
    --metro-cyan-dark: #0097a7;
    --metro-indigo: #3f51b5;
    --metro-indigo-dark: #303f9f;
    --metro-deep-purple: #673ab7;
    --metro-deep-purple-dark: #512da8;
    --metro-light-blue: #03a9f4;
    --metro-light-blue-dark: #0288d1;
    --metro-light-green: #8bc34a;
    --metro-light-green-dark: #689f38;
    --metro-amber: #ffc107;
    --metro-amber-dark: #ff8f00;
    --metro-deep-orange: #ff5722;
    --metro-deep-orange-dark: #e64a19;
    --metro-grey: #9e9e9e;
    --metro-grey-dark: #616161;
    --metro-blue-grey: #607d8b;
    --metro-blue-grey-dark: #455a64;
    
    /* Teal-based Metro UI Elements for Soft Phone */
    --metro-background: #0a0a0a;
    --metro-surface: #1a1a1a;
    --metro-surface-hover: #2a2a2a;
    --metro-text-primary: #ffffff;
    --metro-text-secondary: #b0b0b0;
    --metro-accent: #00b294;
    --metro-accent-hover: #00bcd4;
    --metro-border: #464647;
    --metro-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --metro-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4);
    
    /* Metro Typography */
    --metro-font-family: "Segoe UI", "Segoe WP", "Segoe UI Symbol", sans-serif;
    --metro-font-size-small: 12px;
    --metro-font-size-normal: 14px;
    --metro-font-size-large: 18px;
    --metro-font-size-xlarge: 24px;
    --metro-font-weight-light: 300;
    --metro-font-weight-normal: 400;
    --metro-font-weight-semibold: 600;
}

/* Windows 8 Metro Mobile Start Screen Layout */
.theme-windows8 .metro-start-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--metro-background);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Metro Customer Information Header with Active Call */
.theme-windows8 .customer-info {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--metro-surface);
    border-bottom: 1px solid var(--metro-border);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--metro-shadow);
}

.theme-windows8 .customer-info.active-call {
    height: 120px;
    background: linear-gradient(135deg, var(--metro-teal) 0%, var(--metro-teal-dark) 100%);
    border-bottom: 2px solid var(--metro-teal-accent);
}

.theme-windows8 .customer-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-windows8 .customer-info-title {
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-light);
    color: var(--metro-text-primary);
    margin: 0;
}

.theme-windows8 .customer-details {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: var(--metro-font-size-small);
    color: var(--metro-text-secondary);
}

.theme-windows8 .customer-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.theme-windows8 .customer-info-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Windows 8 Metro Mobile Active Call Header */
.theme-windows8 .active-call-info {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-windows8 .active-call-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-windows8 .active-call-icon {
    font-size: 32px;
    animation: metroCallPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.theme-windows8 .active-call-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.theme-windows8 .active-call-number {
    font-size: 24px;
    font-weight: var(--metro-font-weight-light);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-windows8 .active-call-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--metro-font-weight-normal);
}

.theme-windows8 .active-call-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-windows8 .active-call-timer {
    font-size: 20px;
    font-weight: var(--metro-font-weight-light);
    font-family: "Segoe UI", "Segoe WP", "Segoe UI Symbol", sans-serif;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.theme-windows8 .active-call-quality {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--metro-font-weight-normal);
}

.theme-windows8 .active-call-quality-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--metro-green);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
    animation: metroQualityPulse 2s ease-in-out infinite;
}

.theme-windows8 .active-call-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-windows8 .active-call-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 13px;
    font-weight: var(--metro-font-weight-semibold);
    min-width: 60px;
    text-align: center;
}

.theme-windows8 .active-call-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-windows8 .active-call-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.theme-windows8 .active-call-btn.danger {
    background: rgba(244, 67, 54, 0.9);
    border-color: rgba(244, 67, 54, 0.6);
}

.theme-windows8 .active-call-btn.danger:hover {
    background: var(--metro-red);
    border-color: var(--metro-red);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.theme-windows8 .active-call-btn.success {
    background: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 0.6);
}

.theme-windows8 .active-call-btn.success:hover {
    background: var(--metro-green);
    border-color: var(--metro-green);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Metro Header Bar */
.theme-windows8 .metro-header {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--metro-surface);
    border-bottom: 1px solid var(--metro-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--metro-shadow);
    transition: top 0.3s ease;
}

.theme-windows8 .metro-header.active-call {
    top: 120px;
}

.theme-windows8 .metro-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-windows8 .metro-header-title {
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-light);
    color: var(--metro-text-primary);
    margin: 0;
}

.theme-windows8 .metro-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Metro Status Bar */
.theme-windows8 .metro-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--metro-surface);
    border-top: 1px solid var(--metro-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.theme-windows8 .metro-status-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-windows8 .metro-status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Metro Tiles Container */
.theme-windows8 .metro-tiles-container {
    margin-top: 108px;
    margin-bottom: 40px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    max-width: 100%;
}

/* Metro Tiles */
.theme-windows8 .metro-tile {
    background: var(--metro-surface);
    border: 1px solid var(--metro-border);
    border-radius: 0;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--metro-shadow);
}

.theme-windows8 .metro-tile:hover {
    background: var(--metro-surface-hover);
    transform: scale(1.02);
    box-shadow: var(--metro-shadow-hover);
}

.theme-windows8 .metro-tile:active {
    transform: scale(0.98);
}

/* Metro Tile Sizes */
.theme-windows8 .metro-tile.wide {
    grid-column: span 2;
}

.theme-windows8 .metro-tile.tall {
    grid-row: span 2;
    min-height: 308px;
}

.theme-windows8 .metro-tile.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 308px;
}

/* Metro Tile Colors */
.theme-windows8 .metro-tile.blue {
    background: var(--metro-blue);
    color: white;
}

.theme-windows8 .metro-tile.green {
    background: var(--metro-green);
    color: white;
}

.theme-windows8 .metro-tile.red {
    background: var(--metro-red);
    color: white;
}

.theme-windows8 .metro-tile.orange {
    background: var(--metro-orange);
    color: white;
}

.theme-windows8 .metro-tile.purple {
    background: var(--metro-purple);
    color: white;
}

.theme-windows8 .metro-tile.pink {
    background: var(--metro-pink);
    color: white;
}

.theme-windows8 .metro-tile.teal {
    background: var(--metro-teal);
    color: white;
}

.theme-windows8 .metro-tile.lime {
    background: var(--metro-lime);
    color: white;
}

.theme-windows8 .metro-tile.brown {
    background: var(--metro-brown);
    color: white;
}

.theme-windows8 .metro-tile.cyan {
    background: var(--metro-cyan);
    color: white;
}

.theme-windows8 .metro-tile.indigo {
    background: var(--metro-indigo);
    color: white;
}

.theme-windows8 .metro-tile.deep-purple {
    background: var(--metro-deep-purple);
    color: white;
}

.theme-windows8 .metro-tile.light-blue {
    background: var(--metro-light-blue);
    color: white;
}

.theme-windows8 .metro-tile.light-green {
    background: var(--metro-light-green);
    color: white;
}

.theme-windows8 .metro-tile.amber {
    background: var(--metro-amber);
    color: white;
}

.theme-windows8 .metro-tile.deep-orange {
    background: var(--metro-deep-orange);
    color: white;
}

.theme-windows8 .metro-tile.grey {
    background: var(--metro-grey);
    color: white;
}

.theme-windows8 .metro-tile.blue-grey {
    background: var(--metro-blue-grey);
    color: white;
}

/* Metro Tile Content */
.theme-windows8 .metro-tile-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.theme-windows8 .metro-tile-title {
    font-size: var(--metro-font-size-normal);
    font-weight: var(--metro-font-weight-semibold);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.theme-windows8 .metro-tile-subtitle {
    font-size: var(--metro-font-size-small);
    opacity: 0.8;
    margin: 0;
    line-height: 1.2;
}

/* Metro Live Tiles */
.theme-windows8 .metro-tile.live {
    animation: metroPulse 3s ease-in-out infinite;
}

@keyframes metroPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Metro App Bar */
.theme-windows8 .metro-app-bar {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--metro-surface);
    border-top: 1px solid var(--metro-border);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.theme-windows8 .metro-app-bar-content {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 100%;
    overflow-x: auto;
}

.theme-windows8 .metro-app-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    min-width: 60px;
}

.theme-windows8 .metro-app-bar-item:hover {
    background: var(--metro-surface-hover);
}

.theme-windows8 .metro-app-bar-item:active {
    transform: scale(0.95);
}

.theme-windows8 .metro-app-bar-icon {
    font-size: 24px;
    color: var(--metro-text-secondary);
}

.theme-windows8 .metro-app-bar-label {
    font-size: var(--metro-font-size-small);
    color: var(--metro-text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* Metro Navigation */
.theme-windows8 .metro-navigation {
    position: fixed;
    top: 48px;
    left: 0;
    width: 240px;
    bottom: 100px;
    background: var(--metro-surface);
    border-right: 1px solid var(--metro-border);
    z-index: 998;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 16px 0;
}

.theme-windows8 .metro-navigation.open {
    transform: translateX(0);
}

.theme-windows8 .metro-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--metro-text-secondary);
}

.theme-windows8 .metro-nav-item:hover {
    background: var(--metro-surface-hover);
    color: var(--metro-text-primary);
}

.theme-windows8 .metro-nav-item.active {
    background: var(--metro-accent);
    color: white;
}

.theme-windows8 .metro-nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.theme-windows8 .metro-nav-label {
    font-size: var(--metro-font-size-normal);
    font-weight: var(--metro-font-weight-normal);
}

/* Metro Hamburger Menu */
.theme-windows8 .metro-hamburger {
    background: none;
    border: none;
    color: var(--metro-text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.theme-windows8 .metro-hamburger:hover {
    background: var(--metro-surface-hover);
}

/* Metro Search */
.theme-windows8 .metro-search {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--metro-surface);
    border-bottom: 1px solid var(--metro-border);
    z-index: 997;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 16px;
}

.theme-windows8 .metro-search.open {
    transform: translateY(0);
}

.theme-windows8 .metro-search-input {
    width: 100%;
    background: var(--metro-background);
    border: 1px solid var(--metro-border);
    color: var(--metro-text-primary);
    padding: 12px 16px;
    font-size: var(--metro-font-size-normal);
    border-radius: 4px;
    outline: none;
}

.theme-windows8 .metro-search-input:focus {
    border-color: var(--metro-accent);
}

/* Metro Settings */
.theme-windows8 .metro-settings {
    position: fixed;
    top: 48px;
    right: 0;
    width: 320px;
    bottom: 100px;
    background: var(--metro-surface);
    border-left: 1px solid var(--metro-border);
    z-index: 996;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 16px;
}

.theme-windows8 .metro-settings.open {
    transform: translateX(0);
}

/* Metro Overlay */
.theme-windows8 .metro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 995;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-windows8 .metro-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Metro Animations */
.theme-windows8 .metro-tile {
    animation: metroSlideIn 0.3s ease-out;
}

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

/* Metro Touch Feedback */
.theme-windows8 .metro-tile:active,
.theme-windows8 .metro-app-bar-item:active,
.theme-windows8 .metro-nav-item:active {
    transform: scale(0.95);
}

/* Metro Responsive Design */
@media (max-width: 768px) {
    .theme-windows8 .metro-tiles-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
        padding: 12px;
    }
    
    .theme-windows8 .metro-tile {
        min-height: 120px;
        padding: 12px;
    }
    
    .theme-windows8 .metro-tile-icon {
        font-size: 36px;
    }
    
    .theme-windows8 .metro-tile-title {
        font-size: var(--metro-font-size-small);
    }
    
    .theme-windows8 .metro-tile-subtitle {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .theme-windows8 .metro-tiles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 8px;
    }
    
    .theme-windows8 .metro-tile {
        min-height: 100px;
        padding: 8px;
    }
    
    .theme-windows8 .metro-tile-icon {
        font-size: 28px;
    }
    
    .theme-windows8 .metro-tile-title {
        font-size: 11px;
    }
    
    .theme-windows8 .metro-tile-subtitle {
        font-size: 9px;
    }
}

/* Metro Scrollbar */
.theme-windows8 ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.theme-windows8 ::-webkit-scrollbar-track {
    background: var(--metro-background);
}

.theme-windows8 ::-webkit-scrollbar-thumb {
    background: var(--metro-border);
    border-radius: 4px;
}

.theme-windows8 ::-webkit-scrollbar-thumb:hover {
    background: var(--metro-text-secondary);
}

/* Metro Focus States */
.theme-windows8 .metro-tile:focus,
.theme-windows8 .metro-app-bar-item:focus,
.theme-windows8 .metro-nav-item:focus {
    outline: 2px solid var(--metro-accent);
    outline-offset: 2px;
}

/* Metro Loading States */
.theme-windows8 .metro-tile.loading {
    animation: metroLoading 1.5s ease-in-out infinite;
}

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

/* Metro Error States */
.theme-windows8 .metro-tile.error {
    background: var(--metro-red);
    color: white;
}

/* Metro Success States */
.theme-windows8 .metro-tile.success {
    background: var(--metro-green);
    color: white;
}

/* Metro Warning States */
.theme-windows8 .metro-tile.warning {
    background: var(--metro-amber);
    color: white;
}

/* Metro Info States */
.theme-windows8 .metro-tile.info {
    background: var(--metro-blue);
    color: white;
}

/* Soft Phone Specific Styles */
.theme-windows8 .soft-phone-container {
    position: fixed;
    top: 128px;
    left: 0;
    right: 0;
    bottom: 100px;
    background: var(--metro-background);
    overflow-y: auto;
    padding: 20px;
    transition: top 0.3s ease;
}

.theme-windows8 .soft-phone-container.active-call {
    top: 168px;
}

.theme-windows8 .soft-phone-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--metro-surface);
    border-radius: 8px;
    border: 1px solid var(--metro-border);
}

.theme-windows8 .soft-phone-title {
    font-size: var(--metro-font-size-xlarge);
    font-weight: var(--metro-font-weight-light);
    color: var(--metro-accent);
    margin: 0 0 10px 0;
}

.theme-windows8 .soft-phone-subtitle {
    font-size: var(--metro-font-size-normal);
    color: var(--metro-text-secondary);
    margin: 0;
}

.theme-windows8 .call-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.theme-windows8 .call-button {
    background: var(--metro-surface);
    border: 2px solid var(--metro-border);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--metro-text-primary);
    font-size: var(--metro-font-size-normal);
    font-weight: var(--metro-font-weight-normal);
}

.theme-windows8 .call-button:hover {
    background: var(--metro-surface-hover);
    border-color: var(--metro-accent);
    transform: translateY(-2px);
    box-shadow: var(--metro-shadow-hover);
}

.theme-windows8 .call-button:active {
    transform: translateY(0);
}

.theme-windows8 .call-button.primary {
    background: var(--metro-teal);
    border-color: var(--metro-teal);
    color: white;
}

.theme-windows8 .call-button.primary:hover {
    background: var(--metro-teal-dark);
    border-color: var(--metro-teal-dark);
}

.theme-windows8 .call-button.danger {
    background: var(--metro-red);
    border-color: var(--metro-red);
    color: white;
}

.theme-windows8 .call-button.danger:hover {
    background: var(--metro-red-dark);
    border-color: var(--metro-red-dark);
}

.theme-windows8 .call-button.success {
    background: var(--metro-green);
    border-color: var(--metro-green);
    color: white;
}

.theme-windows8 .call-button.success:hover {
    background: var(--metro-green-dark);
    border-color: var(--metro-green-dark);
}

.theme-windows8 .call-button-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.theme-windows8 .call-button-label {
    font-size: var(--metro-font-size-small);
    font-weight: var(--metro-font-weight-semibold);
}

.theme-windows8 .call-status {
    background: var(--metro-surface);
    border: 1px solid var(--metro-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.theme-windows8 .call-status-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--metro-accent);
}

.theme-windows8 .call-status-text {
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-light);
    color: var(--metro-text-primary);
    margin: 0 0 5px 0;
}

.theme-windows8 .call-status-subtext {
    font-size: var(--metro-font-size-small);
    color: var(--metro-text-secondary);
    margin: 0;
}

.theme-windows8 .call-timer {
    font-size: var(--metro-font-size-xlarge);
    font-weight: var(--metro-font-weight-light);
    color: var(--metro-accent);
    font-family: "Consolas", "Monaco", monospace;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--metro-surface);
    border-radius: 8px;
    border: 1px solid var(--metro-border);
}

.theme-windows8 .call-info {
    background: var(--metro-surface);
    border: 1px solid var(--metro-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.theme-windows8 .call-info-title {
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-semibold);
    color: var(--metro-text-primary);
    margin: 0 0 15px 0;
    text-align: center;
}

.theme-windows8 .call-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--metro-border);
}

.theme-windows8 .call-info-item:last-child {
    border-bottom: none;
}

.theme-windows8 .call-info-label {
    font-size: var(--metro-font-size-normal);
    color: var(--metro-text-secondary);
    font-weight: var(--metro-font-weight-normal);
}

.theme-windows8 .call-info-value {
    font-size: var(--metro-font-size-normal);
    color: var(--metro-text-primary);
    font-weight: var(--metro-font-weight-semibold);
}

.theme-windows8 .dialpad {
    background: var(--metro-surface);
    border: 1px solid var(--metro-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.theme-windows8 .dialpad-title {
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-semibold);
    color: var(--metro-text-primary);
    margin: 0 0 20px 0;
    text-align: center;
}

.theme-windows8 .dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.theme-windows8 .dialpad-button {
    background: var(--metro-surface-hover);
    border: 1px solid var(--metro-border);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: var(--metro-text-primary);
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-semibold);
}

.theme-windows8 .dialpad-button:hover {
    background: var(--metro-accent);
    border-color: var(--metro-accent);
    color: white;
    transform: scale(1.05);
}

.theme-windows8 .dialpad-button:active {
    transform: scale(0.95);
}

.theme-windows8 .dialpad-button.zero {
    grid-column: span 2;
}

.theme-windows8 .dialpad-display {
    background: var(--metro-background);
    border: 1px solid var(--metro-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-light);
    color: var(--metro-text-primary);
    font-family: "Consolas", "Monaco", monospace;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-windows8 .call-history {
    background: var(--metro-surface);
    border: 1px solid var(--metro-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.theme-windows8 .call-history-title {
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-semibold);
    color: var(--metro-text-primary);
    margin: 0 0 15px 0;
    text-align: center;
}

.theme-windows8 .call-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--metro-border);
}

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

.theme-windows8 .call-history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-windows8 .call-history-number {
    font-size: var(--metro-font-size-normal);
    font-weight: var(--metro-font-weight-semibold);
    color: var(--metro-text-primary);
}

.theme-windows8 .call-history-time {
    font-size: var(--metro-font-size-small);
    color: var(--metro-text-secondary);
}

.theme-windows8 .call-history-status {
    font-size: var(--metro-font-size-small);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: var(--metro-font-weight-semibold);
}

.theme-windows8 .call-history-status.incoming {
    background: var(--metro-blue);
    color: white;
}

.theme-windows8 .call-history-status.outgoing {
    background: var(--metro-green);
    color: white;
}

.theme-windows8 .call-history-status.missed {
    background: var(--metro-red);
    color: white;
}

/* Soft Phone Animations */
.theme-windows8 .call-button.ringing {
    animation: softPhoneRing 1s ease-in-out infinite;
}

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

.theme-windows8 .call-status-icon.active {
    animation: softPhonePulse 2s ease-in-out infinite;
}

@keyframes metroCallPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

@keyframes metroQualityPulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 16px rgba(76, 175, 80, 0.8);
    }
}

/* Windows 8 Metro Mobile Context Menu */
.theme-windows8 .metro-context-menu {
    background: var(--metro-surface);
    border: 1px solid var(--metro-border);
    border-radius: 8px;
    box-shadow: var(--metro-shadow-hover);
    overflow: hidden;
    z-index: 10001;
}

.theme-windows8 .context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--metro-text-primary);
    font-size: var(--metro-font-size-normal);
    font-weight: var(--metro-font-weight-normal);
    border-bottom: 1px solid var(--metro-border);
}

.theme-windows8 .context-menu-item:last-child {
    border-bottom: none;
}

.theme-windows8 .context-menu-item:hover {
    background: var(--metro-surface-hover);
}

.theme-windows8 .context-menu-item.danger {
    color: var(--metro-red);
}

.theme-windows8 .context-menu-item.danger:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* Windows 8 Metro Mobile Modal */
.theme-windows8 .metro-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.theme-windows8 .metro-modal-content {
    background: var(--metro-surface);
    border: 1px solid var(--metro-border);
    border-radius: 12px;
    box-shadow: var(--metro-shadow-hover);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.theme-windows8 .metro-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--metro-border);
    background: var(--metro-surface);
}

.theme-windows8 .metro-modal-header h3 {
    margin: 0;
    font-size: var(--metro-font-size-large);
    font-weight: var(--metro-font-weight-semibold);
    color: var(--metro-text-primary);
}

.theme-windows8 .metro-modal-header button {
    background: none;
    border: none;
    color: var(--metro-text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.theme-windows8 .metro-modal-header button:hover {
    background: var(--metro-surface-hover);
    color: var(--metro-text-primary);
}

.theme-windows8 .metro-modal-body {
    padding: 24px;
}

.theme-windows8 .call-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--metro-border);
}

.theme-windows8 .call-detail-item:last-child {
    border-bottom: none;
}

.theme-windows8 .call-detail-item label {
    font-size: var(--metro-font-size-normal);
    color: var(--metro-text-secondary);
    font-weight: var(--metro-font-weight-normal);
}

.theme-windows8 .call-detail-item span {
    font-size: var(--metro-font-size-normal);
    color: var(--metro-text-primary);
    font-weight: var(--metro-font-weight-semibold);
}

.theme-windows8 .metro-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--metro-border);
    background: var(--metro-surface);
}

.theme-windows8 .metro-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--metro-border);
    border-radius: 6px;
    background: var(--metro-surface);
    color: var(--metro-text-primary);
    font-size: var(--metro-font-size-normal);
    font-weight: var(--metro-font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-windows8 .metro-btn:hover {
    background: var(--metro-surface-hover);
    border-color: var(--metro-accent);
    transform: translateY(-1px);
}

.theme-windows8 .metro-btn.danger {
    background: var(--metro-red);
    border-color: var(--metro-red);
    color: white;
}

.theme-windows8 .metro-btn.danger:hover {
    background: var(--metro-red-dark);
    border-color: var(--metro-red-dark);
}

/* Minimized Call Indicator */
.theme-windows8 .minimized-call-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.theme-windows8 .minimized-call-icon {
    font-size: 16px;
    animation: metroCallPulse 1.5s ease-in-out infinite;
}

.theme-windows8 .minimized-call-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-windows8 .minimized-call-number {
    font-size: 14px;
    font-weight: var(--metro-font-weight-semibold);
    color: white;
}

.theme-windows8 .minimized-call-timer {
    font-size: 12px;
    font-family: "Segoe UI", "Segoe WP", "Segoe UI Symbol", sans-serif;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.theme-windows8 .minimized-call-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-windows8 .minimized-call-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}