/* Dialpad */
.phone-dialpad {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);

    &.call-active {
        justify-content: center;
        text-align: center;
    }
}

.phone-display {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.phone-number {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-primary);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.dialpad-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;

    &:hover {
        background: var(--border-color);
    }

    &:active {
        transform: scale(0.95);
        background: var(--border-color);
    }

    .number {
        font-size: 32px;
        font-weight: 400;
        color: var(--text-primary);
        line-height: 1;
        margin-bottom: 2px;
    }

    .letters {
        font-size: 10px;
        color: var(--text-secondary);
        font-weight: 500;
        margin-top: 2px;
        letter-spacing: 1px;
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.2) 0%,
                rgba(255, 255, 255, 0) 50%,
                rgba(0, 0, 0, 0.05) 100%);
    }
}

.phone-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 280px;
    margin: 0 auto;
    padding: 0 20px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);

    &:hover {
        background: var(--border-color);
    }

    &:active {
        transform: scale(0.95);
        background: var(--border-color);
    }

    &.delete-btn {
        color: var(--text-secondary);
        position: relative;

        &::before {
            content: '';
            position: absolute;
            padding: 0 4px 0 0;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(90%);
        }
    }

    &.call-btn {
        color: var(--text-secondary);
        color: white;
        margin: 0 15px;
        background: #34c759;

        img {
            width: 32px;
            height: 32px;
            filter: brightness(0) invert(1);
        }

        &:disabled {
            background: #2eb350;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            opacity: 0.5;
        }

        &:hover:not(:disabled) {
            background: #30d158;
        }

        &:active:not(:disabled) {
            background: #2eb350;
        }
    }

    &.contact-btn {
        color: var(--text-secondary);
        background: var(--bg-secondary);

        img {
            width: 38px;
            height: 38px;
            filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(90%);
        }

        &:hover {
            background: var(--border-color);
        }

        &:active {
            transform: scale(0.95);
            background: var(--border-color);
        }
    }
}

/* Call Active State */
.call-info {
    margin-bottom: 60px;
}

.call-status {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.call-number {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.call-duration {
    font-size: 20px;
    color: var(--text-secondary);
}

.call-actions {
    display: flex;
    justify-content: center;
}

.end-call-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #ff3b30;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;

    img {
        width: 32px;
        height: 32px;
        filter: brightness(0) invert(1);
    }

    &:hover {
        background: #ff453a;
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(255, 59, 48, 0.3);
    }

    &:active {
        transform: scale(0.9);
        background: #ff2d55;
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.1) 0%,
                rgba(255, 255, 255, 0) 40%,
                rgba(0, 0, 0, 0.05) 100%);
        border-radius: 50%;
        opacity: 0.5;
    }
}